1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-paint-ordering-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,90 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 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 +<!-- Testcase with flex items containing overlapping content, to test 1.10 + their paint-order. --> 1.11 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.12 + <head> 1.13 + <title>CSS Test: Testing the paint-order of overlapping flex items, with varying tweaks on the container</title> 1.14 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.15 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#painting"/> 1.16 + <link rel="match" href="flexbox-paint-ordering-1-ref.xhtml"/> 1.17 + <style> 1.18 + body { 1.19 + line-height: 0; 1.20 + } 1.21 + .container { 1.22 + width: 40px; 1.23 + height: 14px; 1.24 + border: 2px solid green; 1.25 + margin-bottom: 2px; 1.26 + } 1.27 + .a { 1.28 + width: 16px; 1.29 + height: 10px; 1.30 + background: blue; 1.31 + min-width: 0; 1.32 + border: 2px solid lightblue; 1.33 + } 1.34 + .b { 1.35 + width: 16px; 1.36 + height: 10px; 1.37 + background: purple; 1.38 + min-width: 0; 1.39 + border: 2px solid slateblue; 1.40 + } 1.41 + .aKid { 1.42 + margin-left: 10px; 1.43 + margin-top: 2px; 1.44 + width: 16px; 1.45 + height: 6px; 1.46 + background: yellow; 1.47 + border: 1px solid black; 1.48 + } 1.49 + </style> 1.50 + </head> 1.51 + <body> 1.52 + <!-- inline-level flex container --> 1.53 + <div class="container" style="display: inline-flex"> 1.54 + <div class="a"><div class="aKid"/></div> 1.55 + <div class="b"></div> 1.56 + </div> 1.57 + 1.58 + <!-- block-level flex container --> 1.59 + <div class="container" style="display: flex"> 1.60 + <div class="a"><div class="aKid"/></div> 1.61 + <div class="b"></div> 1.62 + </div> 1.63 + 1.64 + <!-- floated flex container --> 1.65 + <div class="container" style="display: flex; float: left"> 1.66 + <div class="a"><div class="aKid"/></div> 1.67 + <div class="b"></div> 1.68 + </div> 1.69 + <!-- Helper-div to clear floats: --> 1.70 + <div style="clear: both"/> 1.71 + 1.72 + <!-- relatively-positioned flex container --> 1.73 + <div class="container" style="display: flex; position: relative"> 1.74 + <div class="a"><div class="aKid"/></div> 1.75 + <div class="b"></div> 1.76 + </div> 1.77 + 1.78 + <!-- absolutely-positioned flex container --> 1.79 + <div class="container" style="display: flex; position: absolute"> 1.80 + <div class="a"><div class="aKid"/></div> 1.81 + <div class="b"></div> 1.82 + </div> 1.83 + <!--- Spacer div, since abspos div doesn't set aside space for itself --> 1.84 + <div style="height: 20px"/> 1.85 + 1.86 + <!-- fixed-position flex container --> 1.87 + <div class="container" style="display: flex; position: fixed"> 1.88 + <div class="a"><div class="aKid"/></div> 1.89 + <div class="b"></div> 1.90 + </div> 1.91 + 1.92 + </body> 1.93 +</html>