mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests [css-flexbox] Migrate orthogonal-writing-modes-and-intrinsic-sizing.html to WPT BUG=1063749 R=cbiesinger@chromium.org Change-Id: I2de65f7a2f8374235f10b640cc4d549fc5a5bb6c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2134867 Commit-Queue: David Grogan <dgrogan@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/master@{#757694} -- wpt-commits: b38c1f940e7530614b94cc2b90aebdfa24fafcc5 wpt-pr: 22665
36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<title>CSS Flexbox: main size on orthogonal flex item.</title>
|
|
<link rel="stylesheet" href="support/flexbox.css" >
|
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-base-size">
|
|
<link rel="issue" href="https://codereview.chromium.org/1052363002">
|
|
<meta name="assert" content="This test ensure the correct main sizes are used when flex item is orthogonal to the flex container."/>
|
|
<style>
|
|
.flexbox {
|
|
background-color: gray;
|
|
}
|
|
|
|
.vertical {
|
|
writing-mode: vertical-lr;
|
|
width: min-content;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/check-layout-th.js"></script>
|
|
|
|
<body onload="checkLayout('.flexbox')">
|
|
<div id=log></div>
|
|
|
|
<div class="flexbox" data-expected-height="20">
|
|
<div class="vertical" data-expected-width="50" data-expected-height="20">
|
|
<div style="width: 50px; height: 20px; background-color: blue;" data-expected-width="50" data-expected-height="20"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flexbox column" data-expected-height="20">
|
|
<div class="vertical" data-expected-width="50" data-expected-height="20">
|
|
<div style="width: 50px; height: 20px; background-color: blue;" data-expected-width="50" data-expected-height="20"></div>
|
|
</div>
|
|
</div>
|