1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-with-pseudo-elements-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,85 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- Reference case where we've swapped in actual divs (fakeBefore/fakeAfter) 1.10 + for the testcase's ::before and ::after generated content. 1.11 + 1.12 + fakeBefore div is always the first child; fakeAfter is always the last. 1.13 +--> 1.14 +<html> 1.15 +<head> 1.16 + <title>CSS Reftest Reference</title> 1.17 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.18 + <meta charset="utf-8"> 1.19 + <style> 1.20 + .flexContainer { 1.21 + display: flex; 1.22 + margin-bottom: 2px; 1.23 + background: lightgray; 1.24 + } 1.25 + .fakeBefore { 1.26 + background: yellow; 1.27 + /* This 'order' value should place us after the other elements, visually, 1.28 + even though we're ::before. */ 1.29 + order: 1; 1.30 + } 1.31 + .fakeAfter { 1.32 + background: lightblue; 1.33 + order: -1; 1.34 + } 1.35 + </style> 1.36 +</head> 1.37 +<body> 1.38 + <!-- 'b' should be at end, due to its high 'order' value: --> 1.39 + <div class="flexContainer"> 1.40 + <div class="fakeBefore">b</div> 1.41 + <div>I</div> 1.42 + </div> 1.43 + 1.44 + <!-- 'b' should be at beginning, since it's '::before' and the other item has 1.45 + a matching 'order' value: --> 1.46 + <div class="flexContainer"> 1.47 + <div class="fakeBefore">b</div> 1.48 + <div style="order: 1">I</div> 1.49 + </div> 1.50 + 1.51 + <!-- 'a' should be at beginning, due to its low 'order' value: --> 1.52 + <div class="flexContainer"> 1.53 + <div>I</div> 1.54 + <div class="fakeAfter">a</div> 1.55 + </div> 1.56 + 1.57 + <!-- 'a' should be at end, since it's '::after' and the other item has 1.58 + a matching 'order' value: --> 1.59 + <div class="flexContainer"> 1.60 + <div style="order: -1">I</div> 1.61 + <div class="fakeAfter">a</div> 1.62 + </div> 1.63 + 1.64 + <!-- As above, the ::after 'a' should be at beginning, and the ::before 'b' 1.65 + should be at end, due to their 'order' values --> 1.66 + <div class="flexContainer"> 1.67 + <div class="fakeBefore">b</div> 1.68 + <div>I</div> 1.69 + <div class="fakeAfter">a</div> 1.70 + </div> 1.71 + 1.72 + <!-- ...but now the normal item "I" has its order increased, so it'll go 1.73 + at the end. --> 1.74 + <div class="flexContainer"> 1.75 + <div class="fakeBefore">b</div> 1.76 + <div style="order: 1">I</div> 1.77 + <div class="fakeAfter">a</div> 1.78 + </div> 1.79 + 1.80 + <!-- ...and now the normal item "I" has its order reduced, so it'll go 1.81 + at the beginning. --> 1.82 + <div class="flexContainer"> 1.83 + <div class="fakeBefore">b</div> 1.84 + <div style="order: -1">I</div> 1.85 + <div class="fakeAfter">a</div> 1.86 + </div> 1.87 +</body> 1.88 +</html>