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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-horiz-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 item. -->
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, with margin/padding/border on the 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-002-ref.xhtml"/>
15 <style>
16 .flexbox {
17 border: 1px dashed blue;
18 height: 200px;
19 display: inline-flex;
20 font-size: 10px;
21 line-height: 10px;
22 vertical-align: top;
23 }
24
25 .flexbox > div {
26 width: 40px;
27 margin: 1px 2px 3px 4px;
28 border-width: 2px 3px 4px 5px;
29 padding: 3px 4px 5px 6px;
30 border-style: dotted;
31 }
32
33 .big {
34 height: 100px;
35 font-size: 20px;
36 line-height: 20px;
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 </style>
61 </head>
62 <body>
63 <div class="flexbox">
64 <div class="flex-start">start</div>
65 <div class="flex-start big">a b c d e f</div>
66 <div class="flex-end">end</div>
67 <div class="flex-end big">a b c d e f</div>
68 <div class="center">center</div>
69 <div class="center big">a b c d e f</div>
70 </div>
71 <br/>
72 <div class="flexbox">
73 <div class="baseline">base</div>
74 <div class="baseline big">abc</div>
75 <div class="stretch">stretch</div>
76 <div class="stretch big">a b c d e f</div>
77 </div>
78 </body>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698