| <!doctype html> |
| <html> |
| <!-- |
| Ref test for https://bugs.webkit.org/show_bug.cgi?id=71488 (Add support for background-color in region styling). |
| Setting the background color is enabled for block elements only. |
| You should not see any red background below. |
| --> |
| <head> |
| <style> |
| @font-face { |
| font-family: webkit-ahem; |
| font-style: normal; |
| src: url(../../resources/Ahem.ttf); |
| } |
| |
| p { background-color: green; font-family: webkit-ahem; } |
| img { background-color: green} |
| .regionBox2 { width: 300px; height: 100px; } |
| |
| #article { position: absolute; top: 10px; } |
| </style> |
| </head> |
| <body> |
| <div id="article" class="regionBox2"> |
| <!-- Green background text styled in region. --> |
| <p>R: 00 G: 80 B: 00</p> |
| <img src="resources/transparent.png"> |
| </div> |
| </body> |
| </html> |