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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/css/CSS2/positioning/dynamic-top-change-002-ref.xht

Issue 2824603002: Import css21/positioning 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
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6
7 <title>CSS Reftest Reference</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10
11 <style type="text/css"><![CDATA[
12 p
13 {
14 line-height: 1.25;
15 margin: 1em 0;
16 }
17
18 strong {line-height: 1;}
19
20 div
21 {
22 background-color: green;
23 height: 100px;
24 margin-top: 28px;
25 /*
26 The green square appears 12px below the p margin box:
27 2em + 2em - (16px + 20px + 16px) + 16px
28 max(margin-bottom of p, margin-top of div)
29 max(16px, margin-top of div) == 16px + 12px;
30 therefore, margin-top of div == 16px + 12px
31 */
32 width: 100px;
33 }
34 ]]></style>
35
36 </head>
37
38 <body>
39
40 <p>Test passes if there is <strong>no red</strong>.</p>
41
42 <div></div>
43
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698