| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Positioning, Overflow, and Stacking: Empty positioned childre
n of 'overflow:auto' boxes</title> |
| 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse
rBugsSection/css21testsuite/" /> <!-- 2012-09-14 --> |
| 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/o
verflow/010.html" type="text/html"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow-clippin
g" /> |
| 9 <link rel="match" href="abspos-overflow-010-ref.xht" /> |
| 10 |
| 11 <style type="text/css"> |
| 12 #outer { |
| 13 overflow: auto; /* this should have no visible effect as the element sizes v
ertically to fit its contents */ |
| 14 color: green; |
| 15 } |
| 16 #inner { |
| 17 position: absolute; /* relative to the viewport, not that it matters */ |
| 18 z-index: -1; /* this should have no effect, as the element is fully transpar
ent anyway */ |
| 19 } |
| 20 </style> |
| 21 </head> |
| 22 <body> |
| 23 <p>There should be green text below.</p> |
| 24 <div id="outer"> |
| 25 This text should be green. |
| 26 <div id="inner"> </div> |
| 27 </div> |
| 28 </body> |
| 29 </html> |
| OLD | NEW |