forked from mirrors/gecko-dev
Automatic update from web-platform-tests[css-layout-api] Implementation of LayoutConstraints#fixedInlineSize. This adds the bare bones for the LayoutConstraints object. It just handles the fixedInlineSize parameter. I expect the information in this object after the next F2F. The layout for the test will simply output an autoBlockSize of 100, if the fixedInlineSize is 100. The tests impose various conditions in how this can occur, but is certainly not exhaustive. Change-Id: I6be4a7b77d7b737c778dc2de8b235035b8d3fa22 Bug: 726125 Reviewed-on: https://chromium-review.googlesource.com/981517 Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#546393} wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074 wpt-pr: 10199 wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074 wpt-pr: 10199
31 lines
841 B
HTML
31 lines
841 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 {
|
|
height: 120px;
|
|
writing-mode: vertical-lr;
|
|
}
|
|
|
|
.test {
|
|
margin-bottom: 20px;
|
|
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>
|