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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/margin-collapse-vlr-037.xht

Issue 1161223002: Import csswg-test/css-writing-modes-3/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments updated Created 5 years, 6 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 Writing Modes Test: 'vertical-lr' and margin collapsing - right mar gin of a block collapses with right margin of its last child</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direc tion-layout" title="7.4 Flow-Relative Mappings" />
11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht" />
12
13 <!--
14 "
15 The margin collapsing rules apply exactly with the block-start margin substitu ted for the top margin and the block-end margin substituted for the bottom margi n.
16 "
17 -->
18
19 <meta content="ahem image" name="flags" />
20 <meta name="assert" content="This test checks that, in a vertical-lr context, the right margin an in-flow block box collapses with its last in-flow block-leve l child's right margin if the element has no right padding and no right border a nd the child's right margin does not collapse with a left margin that has cleara nce." />
21
22 <style type="text/css"><![CDATA[
23 div
24 {
25 font: 25px/1em Ahem;
26 height: 4em;
27 }
28
29 div#wrapper
30 {
31 background: red url("support/margin-collapse-2em-space-wm-vert.png") -1em top;
32 border-left: green solid 1em;
33 width: 3em;
34 -webkit-writing-mode: vertical-lr;
35 }
36
37 div#parent
38 {
39 background-color: green;
40 margin-right: 2em; /* block-end margin */
41 }
42
43 div#last-child
44 {
45 margin-right: 2em; /* block-end margin of last child */
46 }
47
48 div#following-parent
49 {
50 background-color: green;
51 width: 1em;
52 }
53 ]]></style>
54
55 </head>
56
57 <body>
58
59 <p>Test passes if there is a filled green square and <strong>no red</strong>.< /p>
60
61 <div id="wrapper">
62 <div id="parent">
63 <div id="widthless-child"></div>
64 <div id="last-child"></div>
65 </div>
66 <div id="following-parent"></div>
67 </div>
68
69 </body>
70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698