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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-horiz-003.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 the
8 flex container being shorter than its items. -->
9 <html xmlns="http://www.w3.org/1999/xhtml">
10 <head>
11 <title>CSS Test: Testing the behavior of 'align-self' with a horizontal flex container that's shorter than its items</title>
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-horiz-003-ref.xhtml"/>
15 <style>
16 .flexbox {
17 border: 1px dashed blue;
18 padding: 3px;
19 height: 4px;
20 display: inline-flex;
21 font-size: 10px;
22 line-height: 10px;
23 font-family: sans-serif;
24 }
25
26 .flexbox > div {
27 width: 40px;
28 }
29
30 .big {
31 height: 100px;
32 font-size: 20px;
33 line-height: 20px;
34 }
35
36 /* Classes for each of the various align-self values */
37 .flex-start {
38 background: lime;
39 align-self: flex-start;
40 }
41 .flex-end {
42 background: orange;
43 align-self: flex-end;
44 }
45 .center {
46 background: lightblue;
47 align-self: center;
48 }
49 .baseline {
50 background: teal;
51 align-self: baseline;
52 }
53 .stretch {
54 background: pink;
55 align-self: stretch;
56 }
57 .auto {
58 background: yellow;
59 align-self: auto;
60 }
61 .unspecified {
62 background: lightgreen;
63 }
64 .initial {
65 background: aqua;
66 align-self: initial;
67 }
68 .inherit {
69 background: violet;
70 align-self: inherit;
71 }
72 .normal {
73 background: tan;
74 align-self: normal;
75 }
76 </style>
77 </head>
78 <body>
79 <div class="flexbox">
80 <div class="flex-start">start</div>
81 <div class="flex-start big">a b c d e f</div>
82 <div class="flex-end">end</div>
83 <div class="flex-end big">a b c d e f</div>
84 <div class="center">center</div>
85 <div class="center big">a b c d e f</div>
86 <div class="baseline">base</div>
87 <div class="baseline big">abc</div>
88 <div class="stretch">stretch</div>
89 <div class="stretch big">a b c d e f</div>
90 <div class="auto">auto</div>
91 <div class="unspecified">unspec</div>
92 <div class="initial">initial</div>
93 <div class="inherit">inherit</div>
94 <div class="normal">normal</div>
95 </div>
96 </body>
97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698