OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> | |
2 <html lang="en"> | |
3 <head> | |
4 <title>Replaced inline elements (using <object>) and SVG intrinsic width
s (negative test equivalent of 001.html)</title> | |
5 <style type="text/css"> | |
6 html { width: 150px; padding: 0; margin: 8px; position: relative; } | |
7 body { padding: 0; margin: 0; } | |
8 p { font: 16px/20px serif; padding: 0; margin: 0; } | |
9 object { width: auto; height: auto; } /* intrinsic size is 100%x100%, which i
s equivalent to width:100% height:auto (since height:auto on parent) */ | |
10 div { position: absolute; top: 20px; left: 0; height: 150px; width: 150px; ba
ckground: green; } | |
11 </style> | |
12 </head> | |
13 <body> | |
14 <p>There should be an exact square of green
below this line: <object data="resources/002.svg" type="image/sv
g+xml"> FAIL (SVG not supported) </object> </p> | |
15 <div></div> | |
16 </body> | |
17 </html> | |
OLD | NEW |