Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/styling/css-linked-parameters/img-with-linked-parameters-cleared-dynamic.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>CSS Link Parameters - dynamically clear link parameters</title>
<link rel="match" href="circle-black-ref.html">
<style>
img {
link-parameters: param(--color: green);
}
</style>
<img id="target" src="circle-with-parameters.svg">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<script>
(async () => {
await target.decode();
await waitForAtLeastOneFrame();
target.style.setProperty("link-parameters", "none");
takeScreenshot();
})();
</script>
</html>