Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>Request URL Modifiers: cross-origin(anonymous)</title>
<link rel="author" title="Sam Weinig" href="mailto:weinig@webkit.org">
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="A url with the request URL modifier cross-origin(anonymous) requires a response with the appropriate headers.">
<style>
.test {
width: 100px;
height: 100px;
background-color: green;
background-image: url("http://{{hosts[][]}}:{{ports[http][1]}}/css/support/1x1-red.png" cross-origin(anonymous));
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="test"></div>
</body>
</html>