Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/urls/integrity/url-import-integrity.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>Request URL Modifiers: integrity() for @import</title>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#typedef-request-url-modifier-integrity-modifier">
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="An @import with a matching integrity() modifier should apply the imported styles.">
<style>
@import url("http://{{hosts[][]}}:{{ports[http][0]}}/css/css-values/urls/support/green-style.css?pipe=header(Access-Control-Allow-Origin,*)" cross-origin(anonymous) integrity("sha256-Id1Hm8tP+9lRAbQlLxjIRmzsU5MK+hftN3wiKKt4Hf4="));
div {
width: 100px;
height: 100px;
background-color: red;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div></div>
<script>
window.addEventListener("load", () => {
document.documentElement.classList.remove("reftest-wait");
});
</script>
</body>
</html>