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.
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
24 <div style=
"overflow:hidden; height:0;">
25 <div id=
"d" style=
"border:2px solid red; width:50px; height:50px;">A
</div>