element-paint-simple.html 1.3 KB

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