layout/reftests/image-element/element-paint-simple.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.

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

mercurial