testing/web-platform/tests/css/css-values/urls/cross-origin/url-image-crossorigin-anonymous-negative.sub.html
author Duncan McIntosh <dmcintosh@mozilla.com>
Wed, 09 Jul 2025 19:42:02 +0000 (8 hours ago)
changeset 795924 9ccc6a2267cbf69c621fec973bd28573c2a45a1f
parent 784116 735a69427a69e70bd0c6c8a9375cf1fbda0859ad
permissions -rw-r--r--
Bug 1966586 - Reuse other browser windows when opening _blank links in Taskbar Tabs windows. r=nrishel This doesn't affect other tab additions, nor does it stop the tab bar from appearing altogether. The idea is that _if_ another tab is somehow made, the user should see it; but we should not create new tabs if we can avoid it. This also adds tests for opening URIs in popups and taskbar tabs to make it less likely that this breaks in future. Differential Revision: https://phabricator.services.mozilla.com/D253726
<!DOCTYPE html>
<html>
<head>
<title>Request URL Modifiers: crossorigin(anonymous)</title>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#typedef-request-url-modifier-crossorigin-modifier">
<link rel="author" title="Sam Weinig" href="mailto:weinig@webkit.org">
<link rel="match" href="../url-image-ref.html">
<meta name="assert" content="A url with the request URL modifier crossorigin(anonymous) requires a response with the appropriate headers.">
<style>
  .test {
    width: 200px;
    height: 200px;
    background-color: green;
    background-image: url("http://{{hosts[][]}}:{{ports[http][1]}}/css/support/1x1-red.png" crossorigin(anonymous));
  }
</style>
</head>
<body>
<p>Test passes if there is a green square.</p>
<div class="test"></div>
</body>
</html>