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