Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>link-parameters: a fragment directive does not hide the fragment before it in a CSS image</title>
<link rel="author" title="Sam Weinig" href="mailto:sam@webkit.org">
<link rel="match" href="link-parameters-fragment-identifier-ref.html">
<meta name="assert" content="A CSS image URL whose fragment has both an element id and a link parameter directive targets that element and passes the parameter.">
<style>
body { margin: 0; }
div { width: 100px; height: 100px; background-image: url("resources/target.svg#box:~:param(--bg, green)"); }
</style>
<div></div>