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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/image-element/element-paint-simple.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/licenses/publicdomain/
     1.7 +
     1.8 +     Test a simple element painting.
     1.9 +     Note: if background is repeated, a temporary surface will be created to
    1.10 +     hold the paint server image, which results in a reftest failure:
    1.11 +     temporary surfaces use the RGBA 32bit format, but the fonts are rendered
    1.12 +     with a deeper format (more than 32bit), so when rendering a font to a
    1.13 +     temporary surface, we lose some color information.
    1.14 +-->
    1.15 +<html>
    1.16 +<body>
    1.17 +  <p style="width:60%; border:1px solid black; margin-left:100px;
    1.18 +            background:-moz-element(#d); background-repeat:no-repeat;">
    1.19 +    "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    1.20 +    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
    1.21 +    veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
    1.22 +    commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
    1.23 +    velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
    1.24 +    cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
    1.25 +    est laborum."
    1.26 +  </p>
    1.27 +  <div style="overflow:hidden; height:0;">
    1.28 +    <div id="d" style="border:2px solid red; width:50px; height:50px;">A</div>
    1.29 +  </div>
    1.30 +</body>
    1.31 +</html>

mercurial