mirror of
https://github.com/servo/servo
synced 2026-05-11 01:22:19 +02:00
39 lines
910 B
HTML
39 lines
910 B
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedblocksize">
|
|
<link rel="match" href="green-square-ref.html">
|
|
<meta name="assert" content="This test checks that LayoutConstraints#fixedBlockSize is passed into the layout function correctly." />
|
|
<style>
|
|
body {
|
|
display: grid;
|
|
grid: auto-flow / 100px;
|
|
}
|
|
|
|
.test {
|
|
writing-mode: vertical-rl;
|
|
background: red;
|
|
--expected-block-size: 100;
|
|
width: 100px;
|
|
}
|
|
|
|
.child {
|
|
background: green;
|
|
}
|
|
|
|
@supports (display: layout(test)) {
|
|
.test {
|
|
display: layout(test);
|
|
}
|
|
}
|
|
</style>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script src="/common/worklet-reftest.js"></script>
|
|
|
|
<div class="test">
|
|
<div class="child"></div>
|
|
</div>
|
|
|
|
<script>
|
|
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-block-size.js'});
|
|
</script>
|