Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Request URL Modifiers: cross-origin(anonymous) in image-set() negative test</title>
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="URL modifiers should apply to url() values inside image-set(): cross-origin(anonymous) should block a cross-origin image served without CORS headers.">
<style>
.test {
width: 100px;
height: 100px;
background-color: green;
background-image: image-set(url("http://{{hosts[][]}}:{{ports[http][1]}}/css/support/1x1-red.png" cross-origin(anonymous)) 1x);
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="test"></div>