mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
31 lines
816 B
HTML
31 lines
816 B
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedinlinesize">
|
|
<link rel="match" href="constraints-fixed-inline-size-ref.html">
|
|
<meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." />
|
|
<style>
|
|
body {
|
|
display: grid;
|
|
grid: auto-flow / 100px;
|
|
}
|
|
|
|
.test {
|
|
background: red;
|
|
}
|
|
|
|
@supports (display: layout(test)) {
|
|
.test {
|
|
background: green;
|
|
display: layout(test);
|
|
}
|
|
}
|
|
</style>
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<script src="/common/worklet-reftest.js"></script>
|
|
|
|
<div class="test"></div>
|
|
|
|
<script>
|
|
importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'});
|
|
</script>
|