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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/margin-collapse-vrl-016.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-rl' and margin collapsing - elements with 'overflow' set to 'hidden'</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 Test adapted and modified from
15 http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009 .htm
16
17 "
18 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.
19 "
20 -->
21
22 <meta content="ahem image" name="flags" />
23 <meta name="assert" content="This test checks that elements with 'overflow' se t to 'hidden' do not collapse their horizontal margin with the horizontal margin in-flow children in 'vertical-rl' writing-mode. In this test, we are testing an d checking that 'margin-right' of div#overflow does not collapse with 'margin-ri ght' of div#nested." />
24
25 <style type="text/css"><![CDATA[
26 div
27 {
28 font: 25px/1em Ahem;
29 height: 4em;
30 }
31
32 div#wrapper
33 {
34 width: 8em;
35 -webkit-writing-mode: vertical-rl;
36 }
37
38 div#overflow
39 {
40 background-color: green;
41 margin-right: 4em; /* block-start margin of overflowed block */
42 overflow: hidden;
43 width: 4em;
44 }
45
46 div#nested
47 {
48 background-color: red;
49 margin-right: 4em; /* block-start margin of sub-block */
50 width: 4em;
51 }
52 ]]></style>
53
54 </head>
55
56 <body>
57
58 <p>Test passes if there is a filled green square and <strong>no red</strong>.< /p>
59
60 <div id="wrapper">
61 <div id="overflow">
62 <div id="nested"></div>
63 </div>
64 </div>
65
66 </body>
67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698