Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1080)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/replaced-intrinsic-ratio-001.xht

Issue 2818243002: Import css21/normal-flow W3C CSS Test Suite (Closed)
Patch Set: git rebase-update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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: Auto Width for Replaced Element with Intrinsic Ratio Only</ti tle>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.ne t/contact" />
6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/Browse rBugsSection/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" />
9
10 <!--
11 <link rel="help" href="http://www.w3.org/TR/SVGTiny12/coords.html#IntrinsicSiz ing" />
12 -->
13
14 <meta name="flags" content="may svg" />
15
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; }
21
22 /* basic tests for inline and block */
23 #img1 { margin-top: -1em; }
24 #img2 { display: block; }
25
26 /* shrinkwrapped */
27 #p3 { width: 100%; float: left; margin: 0; }
28 #t4 { width: 15em; display: table-cell; }
29 #t5 { width: 100%; }
30
31 /* controls */
32 object { background: red; }
33 object, .control { border: blue solid 1em; margin: 0 1em; }
34
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 w idth 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">Th is 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">T his 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-rati o.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/in trinsic-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-rati o.svg">This test won't work because you do not have images enabled.</object></p>
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698