| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 .region { | |
| 6 -webkit-background-clip: text; | |
| 7 | |
| 8 width: 400px; | |
| 9 height: 100px; | |
| 10 border: 1px solid black; | |
| 11 | |
| 12 font-family: Ahem; | |
| 13 font-size: 100px; | |
| 14 color: transparent; | |
| 15 } | |
| 16 #region-1 { | |
| 17 background-color: green; | |
| 18 } | |
| 19 #region-2 { | |
| 20 background-color: blue; | |
| 21 margin-top: 10px; | |
| 22 } | |
| 23 </style> | |
| 24 </head> | |
| 25 <body> | |
| 26 <p>This test verifies that -webkit-background-clip: text applies correctly i
n regions.</p> | |
| 27 <p>This test passes if there are two regions, with the following appearance:
</p> | |
| 28 <ul> | |
| 29 <li>Each region has black border.</li> | |
| 30 <li>Each region contains two square characters, separated by a space.</l
i> | |
| 31 <li>The first region's square characters are green because they clip the
region's green background.</li> | |
| 32 <li>The second region's square characters are blue because they clip the
region's blue background.</li> | |
| 33 </ul> | |
| 34 <div id="region-1" class="region">x x</div> | |
| 35 <div id="region-2" class="region">x x</div> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |