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/link-parameters-dynamic.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>link-parameters: changing the property after load updates the rendered resource</title>
<link rel="match" href="link-parameters-dynamic-ref.html">
<style>
body { margin: 0; }
img { display: block; width: 100px; height: 100px; }
#target { link-parameters: param(--bg, #a01010); }
</style>
<img id="target" src="resources/solid.svg">
<script>
window.onload = function() {
requestAnimationFrame(function() {
document.getElementById("target").style.linkParameters = "param(--bg, #0a5c2e)";
document.documentElement.classList.remove("reftest-wait");
});
};
</script>
</html>