Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta name="assert" content="This test passes if the renderer does not crash."/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div style="float:left; width:200px; height:200px; background: green;"></div>
x
<div style="width:200px; height:200px;">
<div id="target" style="float:left; width:100px; height:100px; shape-outside:polygon(10px 10px, 20px 20px);"></div>
y
</div>
<div style="float:left; width:200px; height:200px;"></div>
<script>
test(() => {
document.body.offsetTop;
target.style.shapeOutside = "none";
document.body.offsetTop;
}, 'Test passes if the renderer does not crash.');
</script>