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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-with-pseudo-elements-002-expected.html

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 <!DOCTYPE html>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <!-- Reference case where we've swapped in actual divs (fakeBefore/fakeAfter)
7 for the testcase's ::before and ::after generated content.
8
9 fakeBefore div is always the first child; fakeAfter is always the last.
10 -->
11 <html>
12 <head>
13 <title>CSS Reftest Reference</title>
14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
15 <meta charset="utf-8">
16 <style>
17 .flexContainer {
18 display: flex;
19 margin-bottom: 2px;
20 background: lightgray;
21 }
22 .fakeBefore {
23 background: yellow;
24 /* This 'order' value should place us after the other elements, visually,
25 even though we're ::before. */
26 order: 1;
27 }
28 .fakeAfter {
29 background: lightblue;
30 order: -1;
31 }
32 </style>
33 </head>
34 <body>
35 <!-- 'b' should be at end, due to its high 'order' value: -->
36 <div class="flexContainer">
37 <div class="fakeBefore">b</div>
38 <div>I</div>
39 </div>
40
41 <!-- 'b' should be at beginning, since it's '::before' and the other item has
42 a matching 'order' value: -->
43 <div class="flexContainer">
44 <div class="fakeBefore">b</div>
45 <div style="order: 1">I</div>
46 </div>
47
48 <!-- 'a' should be at beginning, due to its low 'order' value: -->
49 <div class="flexContainer">
50 <div>I</div>
51 <div class="fakeAfter">a</div>
52 </div>
53
54 <!-- 'a' should be at end, since it's '::after' and the other item has
55 a matching 'order' value: -->
56 <div class="flexContainer">
57 <div style="order: -1">I</div>
58 <div class="fakeAfter">a</div>
59 </div>
60
61 <!-- As above, the ::after 'a' should be at beginning, and the ::before 'b'
62 should be at end, due to their 'order' values -->
63 <div class="flexContainer">
64 <div class="fakeBefore">b</div>
65 <div>I</div>
66 <div class="fakeAfter">a</div>
67 </div>
68
69 <!-- ...but now the normal item "I" has its order increased, so it'll go
70 at the end. -->
71 <div class="flexContainer">
72 <div class="fakeBefore">b</div>
73 <div style="order: 1">I</div>
74 <div class="fakeAfter">a</div>
75 </div>
76
77 <!-- ...and now the normal item "I" has its order reduced, so it'll go
78 at the beginning. -->
79 <div class="flexContainer">
80 <div class="fakeBefore">b</div>
81 <div style="order: -1">I</div>
82 <div class="fakeAfter">a</div>
83 </div>
84 </body>
85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698