fune/testing/web-platform/tests/css/css-layout-api/constraints-fixed-inline-size-fixed-vrl.https.html
Ian Kilpatrick 545699c72a Bug 1449286 [wpt PR 10199] - [css-layout-api] Implementation of LayoutConstraints#fixedInlineSize., a=testonly
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
2018-04-15 08:36:55 +01:00

27 lines
808 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>
.test {
background: red;
height: 100px;
writing-mode: vertical-rl;
}
@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>