Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-anchor-position/chrome-336322507-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<style>
#crash {
--grad: linear-gradient(black, white);
background: var(--grad);
position: absolute;
top: anchor(center);
}
</style>
<div id="crash"></div>
<script>
document.body.offsetTop;
crash.remove();
</script>