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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/box-sizing-019.html

Issue 2539753002: [css-ui] Import W3C Test Suite (Closed)
Patch Set: Created 4 years 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>
2 <meta charset="utf-8">
3 <title>CSS Basic User Interface Test: auto sizing rules with box-sizing:border-b ox, intrinsic width and ratio, w > max-wdith and h > max-height and max-width/w > max-height/h</title>
4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
5 <link rel="help" href="https://drafts.csswg.org/css-ui-3/#box-sizing">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-w idth">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-h eight">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths">
9 <meta name="flags" content="svg">
10 <link rel="match" href="reference/box-sizing-010-ref.html">
11 <meta name="assert" content="Test checks that the CSS2.1 rules for auto width an d height
12 on replaced elements with intrinsic width and ratio
13 with the w &gt; max-width and h &gt; max-height con straint violation
14 and max-width/w &gt; max-height/h
15 are properly interpreted when box-sizing is border- box.">
16 <style>
17 #ref {
18 display: inline-block;
19 width: 70px;
20 height: 70px;
21 background: green;
22 }
23
24 img {
25 box-sizing: border-box;
26 width: auto;
27 height: auto;
28 background: white;
29 max-height: 70px;
30 max-width: 100px;
31 }
32
33 </style>
34 <body>
35 <p>Test passes if there are 2 <strong>filled green squares</strong> and they a re the <strong>same size</strong>.</p>
36 <div id="ref"></div>
37 <img src="support/w100_r1-1.svg">
38 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698