Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-cascade/inline-style-background.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="d" style="background:revert">Test passes if it does not crash.</div>
<script>
test(() => {
d.offsetTop;
d.style.background = "url(dummy.png)";
d.offsetLeft;
});
</script>
</body>