Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / CSS2 / normal-flow / replaced-intrinsic-ratio-001.xht
blobe4bb29822609b093fe21424bcbe8ed3208ca8dde
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: Auto Width for Replaced Element with Intrinsic Ratio Only</title>
5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" />
6   <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-06 -->
7   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" />
8   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" />
10   <!--
11   <link rel="help" href="http://www.w3.org/TR/SVGTiny12/coords.html#IntrinsicSizing" />
12   -->
14   <meta name="flags" content="may svg" />
16   <style type="text/css">
17    body { width: 15em; border: silver dashed 1px; }
18    table { border-spacing: 0; }
19    td { padding: 0; }
20    p, table { height: 1em; line-height: 1em; margin: 6em 0; }
22    /* basic tests for inline and block */
23    #img1 { margin-top: -1em; }
24    #img2 { display: block; }
26    /* shrinkwrapped */
27    #p3 { width: 100%; float: left; margin: 0; }
28    #t4 { width: 15em; display: table-cell; }
29    #t5 { width: 100%; }
31    /* controls */
32    object { background: red; }
33    object, .control { border: blue solid 1em; margin: 0 1em; }
35    .control { background: green; }
36    .inst { height: auto; margin: 1em 0; }
37   </style>
38  </head>
39  <body>
40   <p class="inst">Test passes if the following 6 blue rectangles have the same width and if there is no red.</p>
41   <p class="control">&nbsp;</p>
42   <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
43     <!-- sizing is against containing block, not available space -->
44     <object id="img1" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p>
45   <p><object id="img2" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p>
46   <p id="t4"><object id="img4" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p>
47   <table id="t5"><tr><td><object id="img5" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></td></tr></table>
48   <p id="p3"><object id="img3" type="image/svg+xml" data="support/intrinsic-ratio.svg">This test won't work because you do not have images enabled.</object></p>
49  </body>
50 </html>