inline-table-zorder-004.xht (977B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: Test for z-ordering of inline-table</title> 3 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" /> 6 <link rel="match" href="inline-table-zorder-004-ref.xht"/> 7 <style type="text/css"> 8 div#test > span { display:inline-table; vertical-align: top; background: green; color: green; border-bottom: 0.25em solid green; border-top: 0.25em solid green; } 9 div#before { height: 1em; margin-bottom:-1em; } 10 div#before > span { display: inline; vertical-align: top; background: red; color: red; } 11 </style> 12 </head> 13 <body> 14 <div id="before"><span> x </span></div> 15 <div id="test"><span> x </span></div> 16 17 18 </body></html>