Commit 25e61636 authored by David Grogan's avatar David Grogan Committed by Commit Bot

[css-flexbox] Test for definite flex basis of fully inflexible item

Safari and blink legacy fail this; EdgeHTML, Firefox, and blink NG pass
it, but I think blink NG passes it by accident for now.

Change-Id: I38acc8ba98d3897aa77305a36c2ae6f2affec640
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713143
Commit-Queue: David Grogan <dgrogan@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#684111}
parent f0cad443
...@@ -301,3 +301,5 @@ crbug.com/591099 virtual/prefer_compositing_to_lcd_text/compositing/overflow/scr ...@@ -301,3 +301,5 @@ crbug.com/591099 virtual/prefer_compositing_to_lcd_text/compositing/overflow/scr
crbug.com/591099 paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ] crbug.com/591099 paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ]
crbug.com/591099 virtual/compositor_threaded_scrollbar_scrolling/paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ] crbug.com/591099 virtual/compositor_threaded_scrollbar_scrolling/paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ]
crbug.com/591099 virtual/disable-blink-gen-property-trees/paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ] crbug.com/591099 virtual/disable-blink-gen-property-trees/paint/invalidation/scroll/sticky/invalidate-after-composited-scroll-with-sticky.html [ Failure ]
crbug.com/591099 external/wpt/css/css-flexbox/percentage-heights-006.html [ Failure ]
<!DOCTYPE html>
<title>Definite cross sizes</title>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#definite-sizes">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<meta name="flags" content="" />
<meta name="assert" content="In a column flexbox, the height of a fully inflexible item with fixed flex-basis is definite, and percent children resolve against the flex basis, not the specified height." />
<style>
x-flexbox {
display: flex;
flex-direction: column;
}
x-item {
height: 0px;
flex: 0 0 100px;
}
x-item>div {
width: 100px;
height: 100%;
background: green;
}
#reference-overlapped-red {
position: absolute;
background-color: red;
width: 100px;
height: 100px;
z-index: -1;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="reference-overlapped-red"></div>
<x-flexbox>
<x-item>
<div></div>
</x-item>
</x-flexbox>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment