mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests [css-flexbox] Move z-index.html from css3/flexbox to WPT This CL migrates this test out of third_party/blink/web_tests/css3/flexbox and into the WPT-specific directory, adding links to the relevant specs and a test assertion describing its purpose and renames it to flex-item-z-ordering-001.html. Bug: 1063749 Change-Id: I36a4329db16e6cb805ada486ebbebe565a66c97a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131550 Commit-Queue: David Grogan <dgrogan@chromium.org> Reviewed-by: Robert Ma <robertma@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/master@{#755527} -- wpt-commits: 41809766c08ab456471ac484068e4be23c93e792 wpt-pr: 22598
35 lines
1.5 KiB
HTML
35 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<title>CSS Flexbox: z-index on non-positioned flex-items</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#painting">
|
|
<link rel="bookmark" href="https://bugs.webkit.org/show_bug.cgi?id=91405">
|
|
<link rel="match" href="reference/flex-item-z-ordering-001-ref.html">
|
|
<meta name="assert" content="z-index on non-positioned flex-items works.">
|
|
<style>
|
|
.flex-item {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
.positioned {
|
|
position: absolute;
|
|
left: 25px;
|
|
height: 25px;
|
|
width: 50px;
|
|
}
|
|
</style>
|
|
<div>The green boxes should be above the orange boxes, which should be above the purple boxes, which are above the salmon boxes.<div>
|
|
<div style="position:relative">
|
|
<div style="display:flex;">
|
|
<div class="flex-item" style="z-index: 1; background-color: salmon;"></div>
|
|
<div class="flex-item" style="z-index: 100; background-color: orange;"></div>
|
|
</div>
|
|
<div class="positioned" style="top: 0; z-index: 150; background-color: green"></div>
|
|
<div class="positioned" style="top: 25px; z-index: 50; background-color: purple"></div>
|
|
</div>
|
|
<div style="position:relative">
|
|
<div style="display:flex;">
|
|
<img class="flex-item" style="z-index: 1; background-color: salmon;"></img>
|
|
<img class="flex-item" style="z-index: 100; background-color: orange;"></img>
|
|
</div>
|
|
<img class="positioned" style="top: 0; z-index: 150; background-color: green"></img>
|
|
<img class="positioned" style="top: 25px; z-index: 50; background-color: purple"></img>
|
|
</div>
|