layout/reftests/flexbox/flexbox-invalidation-1.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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 <!--
michael@0 7 This test verifies that we include our children's overflow areas in the
michael@0 8 flex container's overflow area -- invalidating their old location and new
michael@0 9 location when the flex container is moved, even if they stick outside the
michael@0 10 flex container.
michael@0 11 -->
michael@0 12 <html class="reftest-wait">
michael@0 13 <head>
michael@0 14 <script>
michael@0 15 function tweak() {
michael@0 16 var outer = document.getElementById("outer");
michael@0 17 outer.style.marginLeft = "40px";
michael@0 18
michael@0 19 document.documentElement.removeAttribute("class");
michael@0 20 }
michael@0 21
michael@0 22 window.addEventListener("MozReftestInvalidate", tweak, false);
michael@0 23 </script>
michael@0 24 <style>
michael@0 25 div#flexContainer {
michael@0 26 width: 100px;
michael@0 27 height: 50px;
michael@0 28 background: lightgray;
michael@0 29 display: flex;
michael@0 30 justify-content: center;
michael@0 31 }
michael@0 32
michael@0 33 div#flexItem {
michael@0 34 border: 1px solid black;
michael@0 35 height: 200%;
michael@0 36 background: purple;
michael@0 37 }
michael@0 38 </style>
michael@0 39 </head>
michael@0 40 <body>
michael@0 41 <div id="outer">
michael@0 42 <div id="flexContainer">
michael@0 43 <div id="flexItem">item</div>
michael@0 44 </div>
michael@0 45 </div>
michael@0 46 </body>
michael@0 47 </html>

mercurial