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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-justify-content-horiz-005-expected.xhtml

Issue 1705363002: Import Mozilla's flexbox tests from csswg-test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test expectations for mac-specific failures Created 4 years, 10 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 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <html xmlns="http://www.w3.org/1999/xhtml">
7 <head>
8 <title>CSS Reftest Reference</title>
9 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
10 <style>
11 body { line-height: 0; }
12
13 div.flexbox > * {
14 display: inline-block;
15 }
16 div.a {
17 height: 20px;
18 width: 10px;
19 background: lightgreen;
20 }
21 div.b {
22 height: 20px;
23 width: 50px;
24 background: pink;
25 }
26 div.c {
27 height: 20px;
28 width: 100px;
29 background: orange;
30 }
31 .centerParent {
32 text-align: center;
33 }
34 .center {
35 display: inline-block;
36 }
37 </style>
38 </head>
39 <body>
40
41 <!-- default (start) -->
42 <div class="flexbox">
43 <div class="a"/>
44 </div>
45 <div class="flexbox">
46 <div class="a"/><div class="b"></div>
47 </div>
48 <div class="flexbox">
49 <div class="a"/><div class="b"/><div class="c"/>
50 </div>
51
52 <!-- flex-start -->
53 <div class="flexbox">
54 <div class="a"/>
55 </div>
56 <div class="flexbox">
57 <div class="a"/><div class="b"/>
58 </div>
59 <div class="flexbox">
60 <div class="a"/><div class="b"/><div class="c"/>
61 </div>
62
63 <!-- flex-end -->
64 <div class="flexbox" style="float:right; clear:right;">
65 <div class="a"/>
66 </div>
67 <div class="flexbox" style="float:right; clear:right;">
68 <div class="a"/><div class="b"/>
69 </div>
70 <div class="flexbox" style="float:right; clear:right;">
71 <div class="a"/><div class="b"/><div class="c"/>
72 </div>
73 <div style="clear:right;"></div>
74
75 <!-- center -->
76 <div class="centerParent">
77 <div class="flexbox center">
78 <div class="a"/>
79 </div>
80 </div>
81 <div class="centerParent">
82 <div class="flexbox center">
83 <div class="a"/><div class="b"/>
84 </div>
85 </div>
86 <div class="centerParent">
87 <div class="flexbox center">
88 <div class="a"/><div class="b"/><div class="c"/>
89 </div>
90 </div>
91
92 <!-- space-between -->
93 <div class="flexbox">
94 <div class="a"/>
95 </div>
96 <div class="flexbox">
97 <div class="a"/><div class="b" style="float: right"/>
98 </div>
99 <div class="flexbox">
100 <div class="a" style="display:block; float: left"/>
101 <div class="c" style="float:right"/>
102 <!-- Use fixed-size margins to subtract space for "a" and "c", and then
103 use auto margins to center 'b' within the remaining space -->
104 <div style="display: block; margin-left: 10px; margin-right: 100px">
105 <div class="b" style="margin: auto"/>
106 </div>
107 </div>
108
109 <!-- space-around -->
110 <!-- Center "a" here just as we did above in the "center" case. -->
111 <div class="centerParent">
112 <div class="flexbox center">
113 <div class="a"/>
114 </div>
115 </div>
116 <!-- For the rest, we'll use a flex container with invisible flexible items
117 instead of packing space. That's simpler than trying to hack up
118 a width-independent reference case for "justify-content: space-around".
119 (There are other reftests to ensure that basic flex container
120 behavior is correct, so it's safe to rely on it here.) -->
121 <div class="flexbox" style="display: flex">
122 <div style="flex: 0.5"/>
123 <div class="a"/>
124 <div style="flex: 1"/>
125 <div class="b"/>
126 <div style="flex: 0.5"/>
127 </div>
128 <div class="flexbox" style="display: flex">
129 <div style="flex: 0.5"/>
130 <div class="a"/>
131 <div style="flex: 1"/>
132 <div class="b"/>
133 <div style="flex: 1"/>
134 <div class="c"/>
135 <div style="flex: 0.5"/>
136 </div>
137 </body>
138 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698