layout/reftests/image-element/element-paint-simple.html

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 <!--
michael@0 2 Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/licenses/publicdomain/
michael@0 4
michael@0 5 Test a simple element painting.
michael@0 6 Note: if background is repeated, a temporary surface will be created to
michael@0 7 hold the paint server image, which results in a reftest failure:
michael@0 8 temporary surfaces use the RGBA 32bit format, but the fonts are rendered
michael@0 9 with a deeper format (more than 32bit), so when rendering a font to a
michael@0 10 temporary surface, we lose some color information.
michael@0 11 -->
michael@0 12 <html>
michael@0 13 <body>
michael@0 14 <p style="width:60%; border:1px solid black; margin-left:100px;
michael@0 15 background:-moz-element(#d); background-repeat:no-repeat;">
michael@0 16 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
michael@0 17 tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
michael@0 18 veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
michael@0 19 commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
michael@0 20 velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
michael@0 21 cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
michael@0 22 est laborum."
michael@0 23 </p>
michael@0 24 <div style="overflow:hidden; height:0;">
michael@0 25 <div id="d" style="border:2px solid red; width:50px; height:50px;">A</div>
michael@0 26 </div>
michael@0 27 </body>
michael@0 28 </html>

mercurial