Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-layout-api/crash-multicol.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta name="assert" content="This test checks that browser doesn't crash when the layout() function is used with multicol." />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/worklet-reftest.js"></script>
<style>
#test {
display: layout('test');
columns: 2;
}
</style>
<div id="test"></div>
<script id="code" type="text/worklet">
registerLayout('test', class {
async intrinsicSizes() {}
async layout() {}
});
</script>
<script>
promise_test(async function() {
await importWorklet(CSS.layoutWorklet, document.getElementById('code').textContent);
});
</script>