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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-align-self-horiz-002-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, using floated divs
7 in place of flex items and using relative positioning in place of the
8 align-items / align-self properties. -->
9 <html xmlns="http://www.w3.org/1999/xhtml">
10 <head>
11 <title>CSS Reftest Reference</title>
12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com" />
13 <style>
14 .flexbox {
15 border: 1px dashed blue;
16 height: 200px;
17 display: inline-block;
18 font-size: 10px;
19 line-height: 10px;
20 vertical-align: top;
21 }
22
23 .flexbox > div { float: left }
24 .flex-start, .flex-end, .center, .baseline, .stretch,
25 .auto, .unspecified, .initial, .inherit {
26 width: 40px;
27 margin: 1px 2px 3px 4px;
28 border-width: 2px 3px 4px 5px;
29 padding: 3px 4px 5px 6px;
30 position: relative;
31 border-style: dotted;
32 }
33
34 .big {
35 height: 100px;
36 font-size: 20px;
37 line-height: 20px;
38 }
39
40 /* Classes for each of the various align-self values */
41 .flex-start {
42 background: lime;
43 }
44 .flex-end {
45 background: orange;
46 }
47 .center {
48 background: lightblue;
49 }
50 .baseline {
51 background: teal;
52 }
53 .stretch {
54 background: pink;
55 }
56 </style>
57 </head>
58 <body>
59 <div class="flexbox">
60 <div class="flex-start">start</div>
61 <div class="flex-start big">a b c d e f</div>
62 <div class="flex-end" style="top: 172px">end</div>
63 <div class="flex-end big" style="top: 82px">a b c d e f</div>
64 <div class="center" style="top: 86px">center</div>
65 <div class="center big" style="top: 41px">a b c d e f</div>
66 </div>
67 <br/>
68 <div class="flexbox">
69 <!-- We use inline-blocks inside of a wrapper-block as references for the
70 baseline-aligned flex items, since inline-blocks get
71 baseline-aligned in block layout. We also need to specify the widths
72 manually here since the "flexbox > div" child-selector doesn't
73 handle these guys (since they're grandchildren).
74 -->
75 <div>
76 <div class="baseline"
77 style="display: inline-block">base</div><div class="baseline big"
78 style="display: inline-block">abc</div>
79 </div>
80 <div class="stretch" style="height: 182px">stretch</div>
81 <div class="stretch big">a b c d e f</div>
82 </div>
83 </body>
84 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698