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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/normal-flow/block-non-replaced-height-009.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.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>CSS Test: Height determination for block-level non-replaced eleme nts in normal flow when 'overflow' computes to 'visible' and elements' margins d o not collapse</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-bl ock" />
7
8 <meta name="flags" content="" />
9 <meta name="assert" content="When a block-level non-replaced element is in normal flow, 'overflow' computes to 'visible', the 'height' is 'auto' and top and bottom margins do not collapse. The 'height' is the distance from the top o f the topmost margin edge of the content to the bottom edge of the bottom (possi bly collapsed) margin of its last in-flow child, if the child's bottom margin do es not collapse with the element's bottom margin." />
10 <style type="text/css">
11 #div1
12 {
13 position: relative;
14 }
15 #div2
16 {
17 background: blue;
18 border-bottom: 0.25in solid blue;
19 border-top: 0.25in solid blue;
20 }
21 #div2, #div3, #div4, #div5
22 {
23 width: 1in;
24 }
25 #div3, #div4
26 {
27 background: blue;
28 height: 0.25in;
29 }
30 #div3
31 {
32 border-top: 0.25in solid blue;
33 margin-top: 0.25in;
34 }
35 #div4
36 {
37 border-bottom: 0.25in solid blue;
38 margin-bottom: 0.25in;
39 }
40 #div5
41 {
42 background: blue;
43 height: 2in;
44 left: 1in;
45 position: absolute;
46 top: 0;
47 }
48 </style>
49 </head>
50 <body>
51 <p>Test passes if there is a blue square.</p>
52 <div id="div1">
53 <div id="div2">
54 <div id="div3"></div>
55 <div id="div4"></div>
56 </div>
57 <div id="div5"></div>
58 </div>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698