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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-vert-rtl-001-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 <!-- Reference case for align-items / align-self behavior in a vertical
7 "direction: rtl" flex container, using blocks in place of flex items and
8 using float and width keywords to emulate the align-items / align-self
9 properties. -->
10 <html xmlns="http://www.w3.org/1999/xhtml">
11 <head>
12 <title>CSS Reftest Reference</title>
13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
14 <style>
15 .flexbox {
16 border: 1px dashed blue;
17 width: 200px;
18 direction: rtl;
19 font-family: sans-serif;
20 font-size: 10px;
21 }
22
23 div.big {
24 font-size: 20px;
25 width: 50px;
26 }
27
28 .flexbox > * {
29 clear: both;
30 }
31
32 /* Classes for each of the various align-self values */
33 .flex-start {
34 background: lime;
35 float: right;
36 }
37 .flex-end {
38 background: orange;
39 float: left;
40 }
41 .center {
42 background: lightblue;
43 margin: auto;
44 }
45 .baseline {
46 background: teal;
47 float: right;
48 }
49 .stretch {
50 background: pink;
51 width: 100%;
52 }
53 .auto {
54 background: yellow;
55 margin: auto;
56 }
57 .unspecified {
58 background: lightgreen;
59 margin: auto;
60 }
61 .initial {
62 background: aqua;
63 margin: auto;
64 }
65 .inherit {
66 background: violet;
67 float: left;
68 }
69
70 <!-- We center shrinkwrapped text by putting it into an inline-block, and
71 then wrapping that inline-block in a helper-div that has
72 "text-align:center" set. -->
73 .centerParent {
74 text-align: center;
75 }
76 .centerParent > * {
77 display: inline-block;
78 text-align: left; /* Keep parent's centering from tweaking my text */
79 }
80 </style>
81 </head>
82 <body>
83 <div class="flexbox">
84 <div class="flex-start">start</div>
85 <div class="flex-start big">a b c d e f</div>
86 <div class="flex-end">end</div>
87 <div class="flex-end big">a b c d e f</div>
88 <div class="centerParent">
89 <div class="center">center</div>
90 </div>
91 <div class="center big">a b c d e f</div>
92 <div class="baseline">base</div>
93 <div class="baseline big">abc</div>
94 <div class="stretch">stretch</div>
95 <div class="stretch big">a b c d e f</div>
96 <div class="centerParent">
97 <div class="auto">auto</div>
98 </div>
99 <div class="centerParent">
100 <div class="unspecified">unspec</div>
101 </div>
102 <div class="centerParent">
103 <div class="initial">initial</div>
104 </div>
105 <div class="inherit">inherit</div>
106 <!-- Since that last div is floated right, the container doesn't include
107 its height by default. So we add some invisible hacky text (of the
108 same font) to make sure our container is tall enough. -->
109 <span style="visibility:hidden">hacky text</span>
110 </div>
111 </body>
112 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698