layout/reftests/flexbox/flexbox-inlinecontent-horiz-2.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-inlinecontent-horiz-2.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     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 +<!--
    1.10 +     This test removes a div from the middle of some inline content in a flex
    1.11 +     container. That should merge the inline content into a single flex item.
    1.12 +-->
    1.13 +<html xmlns="http://www.w3.org/1999/xhtml"
    1.14 +      class="reftest-wait">
    1.15 +  <head>
    1.16 +    <script>
    1.17 +      function tweak() {
    1.18 +        var removeMe = document.getElementById("removeMe");
    1.19 +        removeMe.parentNode.removeChild(removeMe);
    1.20 +        document.documentElement.removeAttribute("class");
    1.21 +      }
    1.22 +      window.addEventListener("MozReftestInvalidate", tweak, false);
    1.23 +    </script>
    1.24 +    <style>
    1.25 +      div { height: 100px; }
    1.26 +      div.flexbox {
    1.27 +        width: 200px;
    1.28 +        display: flex;
    1.29 +      }
    1.30 +      div.a {
    1.31 +        flex: 1 0 20px;
    1.32 +        background: lightgreen;
    1.33 +      }
    1.34 +      div.b {
    1.35 +        flex: 2 0 30px;
    1.36 +        background: yellow;
    1.37 +      }
    1.38 +      div.inflex {
    1.39 +        flex: 0 0 20px;
    1.40 +        background: gray;
    1.41 +      }
    1.42 +    </style>
    1.43 +  </head>
    1.44 +  <body>
    1.45 +    <div class="flexbox"
    1.46 +       ><div class="a"/>text<div class="b" id="removeMe"/><i>italic</i
    1.47 +       ><div class="inflex"/></div>
    1.48 +  </body>
    1.49 +</html>

mercurial