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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-vert-rtl-002.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 margin/border/padding values on each, and with "direction: rtl" to swap
9 the horizontal (cross) axis item. -->
10 <html xmlns="http://www.w3.org/1999/xhtml">
11 <head>
12 <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex c ontainer, with margin/padding/border on the items and with 'direction: rtl'</tit le>
13 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
14 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-prope rty"/>
15 <link rel="match" href="flexbox-align-self-vert-rtl-002-ref.xhtml"/>
16 <style>
17 .flexbox {
18 border: 1px dashed blue;
19 width: 200px;
20 display: flex;
21 flex-direction: column;
22 direction: rtl;
23 float: left;
24 font-family: sans-serif;
25 font-size: 10px;
26 }
27
28 .flexbox > div {
29 margin: 1px 2px 3px 4px;
30 border-width: 2px 3px 4px 5px;
31 padding: 3px 4px 5px 6px;
32
33 border-style: dotted;
34 }
35
36 div.big {
37 font-size: 20px;
38 width: 50px;
39 }
40
41 /* Classes for each of the various align-self values */
42 .flex-start {
43 background: lime;
44 align-self: flex-start;
45 }
46 .flex-end {
47 background: orange;
48 align-self: flex-end;
49 }
50 .center {
51 background: lightblue;
52 align-self: center;
53 }
54 .baseline {
55 background: teal;
56 align-self: baseline;
57 }
58 .stretch {
59 background: pink;
60 align-self: stretch;
61 }
62 </style>
63 </head>
64 <body>
65 <div class="flexbox">
66 <div class="flex-start">start</div>
67 <div class="flex-start big">a b c d e f</div>
68 <div class="flex-end">end</div>
69 <div class="flex-end big">a b c d e f</div>
70 <div class="center">center</div>
71 <div class="center big">a b c d e f</div>
72 </div>
73 <div class="flexbox">
74 <div class="baseline">base</div>
75 <div class="baseline big">abc</div>
76 <div class="stretch">stretch</div>
77 <div class="stretch big">a b c d e f</div>
78 </div>
79 </body>
80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698