layout/reftests/w3c-css/submitted/flexbox/flexbox-with-pseudo-elements-2.html

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

michael@0 1 <!DOCTYPE html>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!-- Testcase to ensure we handle ::before and ::after pseudo-elements on
michael@0 7 a flex container and treat them as flex items (e.g. honoring "order").
michael@0 8 -->
michael@0 9 <html>
michael@0 10 <head>
michael@0 11 <title>CSS Test: Testing that generated content nodes are treated as a flex items, and honor 'order'</title>
michael@0 12 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 13 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items">
michael@0 14 <link rel="match" href="flexbox-with-pseudo-elements-2-ref.html">
michael@0 15 <meta charset="utf-8">
michael@0 16 <style>
michael@0 17 .flexContainer {
michael@0 18 display: flex;
michael@0 19 margin-bottom: 2px;
michael@0 20 background: lightgray;
michael@0 21 }
michael@0 22 .withBefore::before {
michael@0 23 content: 'b';
michael@0 24 background: yellow;
michael@0 25 /* This 'order' value should place us after the other elements, visually,
michael@0 26 even though we're ::before. */
michael@0 27 order: 1;
michael@0 28 }
michael@0 29 .withAfter::after {
michael@0 30 content: 'a';
michael@0 31 background: lightblue;
michael@0 32 /* This 'order' value should place us before the other elements, visually,
michael@0 33 even though we're ::after. */
michael@0 34 order: -1;
michael@0 35 }
michael@0 36 </style>
michael@0 37 </head>
michael@0 38 <body>
michael@0 39 <!-- 'b' should be at end, due to its high 'order' value: -->
michael@0 40 <div class="flexContainer withBefore">
michael@0 41 <div>I</div>
michael@0 42 </div>
michael@0 43
michael@0 44 <!-- 'b' should be at beginning, since it's '::before' and the other item has
michael@0 45 a matching 'order' value: -->
michael@0 46 <div class="flexContainer withBefore">
michael@0 47 <div style="order: 1">I</div>
michael@0 48 </div>
michael@0 49
michael@0 50 <!-- 'a' should be at beginning, due to its low 'order' value: -->
michael@0 51 <div class="flexContainer withAfter">
michael@0 52 <div>I</div>
michael@0 53 </div>
michael@0 54
michael@0 55 <!-- 'b' should be at beginning, since it's '::after' and the other item has
michael@0 56 a matching 'order' value: -->
michael@0 57 <div class="flexContainer withAfter">
michael@0 58 <div style="order: -1">I</div>
michael@0 59 </div>
michael@0 60
michael@0 61 <!-- As above, the ::after 'a' should be at beginning, and the ::before 'b'
michael@0 62 should be at end, due to their 'order' values -->
michael@0 63 <div class="flexContainer withBefore withAfter">
michael@0 64 <div>I</div>
michael@0 65 </div>
michael@0 66
michael@0 67 <!-- ...but now the normal item "I" has its order increased, so it'll go
michael@0 68 at the end. -->
michael@0 69 <div class="flexContainer withBefore withAfter">
michael@0 70 <div style="order: 1">I</div>
michael@0 71 </div>
michael@0 72
michael@0 73 <!-- ...and now the normal item "I" has its order reduced, so it'll go
michael@0 74 at the beginning. -->
michael@0 75 <div class="flexContainer withBefore withAfter">
michael@0 76 <div style="order: -1">I</div>
michael@0 77 </div>
michael@0 78 </body>
michael@0 79 </html>

mercurial