| <!DOCTYPE html> |
| <html> |
| <style> |
| .border { |
| border: 5px solid transparent; /* So the <img> under test can not be a directly composited. */ |
| border-radius: 220px; |
| height: 240px; |
| } |
| </style> |
| |
| <body> |
| <!-- The blue sector of the test images should be at 12 o'clock. The images should be |
| contained within their CSS border radius circle: they should not look square. --> |
| <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-with-color-profile.png"> |
| <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-with-color-profile.jpg"> |
| <img onload="load(this)" title="webp image" src="resources/webp-color-profile-lossy.webp"> |
| <br> |
| <!-- The blue sector of the test images should be at 12 o'clock. The images should be |
| contained within their CSS border radius circle: they should not look square. --> |
| <img onload="load(this)" title="png image" src="resources/red-at-12-oclock-with-color-profile.png"> |
| <img onload="load(this)" title="jpeg image" src="resources/red-at-12-oclock-with-color-profile.jpg"> |
| <img onload="load(this)" title="webp image" src="resources/webp-color-profile-lossy.webp"> |
| <br> |
| </body> |
| |
| <script> |
| var images = 0; |
| |
| function load(element) { |
| element.classList.add('border'); |
| |
| if (++images == 6 && window.testRunner) |
| setTimeout(function() { testRunner.notifyDone() }, 0); |
| } |
| |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| </script> |
| </html> |