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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-vert-rtl-001.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 <!-- Testcase for align-items / align-self behavior, with all the possible
7 values included on different items within a flex container, and with
8 "direction: rtl" to swap the horizontal (cross) axis. -->
9 <html xmlns="http://www.w3.org/1999/xhtml">
10 <head>
11 <title>CSS Test: Testing the behavior of 'align-self' property values on fle x items that are blocks, in a vertical flex container with 'direction: rtl'</tit le>
12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
13 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-prope rty"/>
14 <link rel="match" href="flexbox-align-self-vert-rtl-001-ref.xhtml"/>
15 <style>
16 .flexbox {
17 border: 1px dashed blue;
18 width: 200px;
19 display: flex;
20 flex-direction: column;
21 direction: rtl;
22 font-family: sans-serif;
23 font-size: 10px;
24
25 /* Any children whose align-self is 'auto' (or unspecified, or
26 initial) will end up taking this value from us: */
27 align-items: center;
28
29 /* Any children whose align-self is 'inherit' will end up
30 inheriting this value from us: */
31 align-self: flex-end;
32 }
33
34 .big {
35 font-size: 20px;
36 width: 50px;
37 }
38
39 /* Classes for each of the various align-self values */
40 .flex-start {
41 background: lime;
42 align-self: flex-start;
43 }
44 .flex-end {
45 background: orange;
46 align-self: flex-end;
47 }
48 .center {
49 background: lightblue;
50 align-self: center;
51 }
52 .baseline {
53 background: teal;
54 align-self: baseline;
55 }
56 .stretch {
57 background: pink;
58 align-self: stretch;
59 }
60 .auto {
61 background: yellow;
62 align-self: auto;
63 }
64 .unspecified {
65 background: lightgreen;
66 }
67 .initial {
68 background: aqua;
69 align-self: initial;
70 }
71 .inherit {
72 background: violet;
73 align-self: inherit;
74 }
75 </style>
76 </head>
77 <body>
78 <div class="flexbox">
79 <div class="flex-start">start</div>
80 <div class="flex-start big">a b c d e f</div>
81 <div class="flex-end">end</div>
82 <div class="flex-end big">a b c d e f</div>
83 <div class="center">center</div>
84 <div class="center big">a b c d e f</div>
85 <div class="baseline">base</div>
86 <div class="baseline big">abc</div>
87 <div class="stretch">stretch</div>
88 <div class="stretch big">a b c d e f</div>
89 <div class="auto">auto</div>
90 <div class="unspecified">unspec</div>
91 <div class="initial">initial</div>
92 <div class="inherit">inherit</div>
93 </div>
94 </body>
95 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698