blob: 5f175100e55ba48fa8cda6f2cd626affee0e3b09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/">
<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>
|