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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-ui-3/box-sizing-001.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: box-sizing:border-box and CSS2.1 10.3.3</t itle>
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#blockwidth">
7 <meta name="flags" content="">
8 <link rel="match" href="reference/box-sizing-001-ref.html">
9 <meta name="assert" content="When box-sizing is border-box, the content width, r ather than the computed value of the width property,
10 is considered when checking whether a block is larg er than its containing block.">
11 <style>
12 #cb {
13 position: absolute;
14 width: 100px;
15 height: 100px;
16 }
17 #red {
18 position:absolute;
19 top: 25px;
20 right:5px;
21 width: 70px;
22 height: 70px;
23 background:red;
24 z-index: -1;
25 }
26 #test {
27 box-sizing: border-box;
28 margin-top: 25px;
29 margin-right: 5px;
30 margin-left: auto; /* should resolve to 25px, but would resolve to 0 if the wrong interpretation of width is used in CSS2.1 10.3.3 */
31 padding-left: 25px;
32 padding-right: 25px;
33 width: 70px;
34 height: 70px;
35 background:green;
36 }
37 </style>
38 <body>
39 <p>Test passes if there is a <strong>filled green square</strong> and <strong> no red</strong>.</p>
40 <div id="cb">
41 <div id="red"></div>
42 <div id="test"></div>
43 </div>
44 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698