layout/reftests/flexbox/flexbox-dyn-changeFrameWidth-3.xhtml

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
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 checks that we don't end up with the effects of an intermediate
michael@0 8 "measuring" reflow left over, when we resize a window that contains a
michael@0 9 vertical flex container with an auto-height flex item.
michael@0 10
michael@0 11 This test should end up rendering as a lime square, 100px by 100px.
michael@0 12 -->
michael@0 13 <html xmlns="http://www.w3.org/1999/xhtml"
michael@0 14 class="reftest-wait">
michael@0 15 <head>
michael@0 16 <style>
michael@0 17 #frame {
michael@0 18 width: 400px;
michael@0 19 height: 200px;
michael@0 20 border: 0;
michael@0 21 }
michael@0 22 </style>
michael@0 23 <script>
michael@0 24 function tweak() {
michael@0 25 document.getElementById("frame").style.width = "100px";
michael@0 26 document.documentElement.removeAttribute("class");
michael@0 27 }
michael@0 28 window.addEventListener("MozReftestInvalidate", tweak, false);
michael@0 29 </script>
michael@0 30 </head>
michael@0 31 <body>
michael@0 32 <iframe id="frame" src="flexbox-dyn-changeFrameWidth-3-iframe.html"></iframe>
michael@0 33 </body>
michael@0 34 </html>

mercurial