fune/testing/web-platform/tests/css/css-flexbox/flexbox_flex-none-wrappable-content.html
Stephen McGruer 6104e826e0 Bug 1441390 [wpt PR 9518] - Add test for wrappable content that has flex:none, a=testonly
Automatic update from web-platform-testsAdd test for wrappable content that has flex:none (#9518)

Add test for wrappable content that has flex:none

See https://bugzilla.mozilla.org/show_bug.cgi?id=1374540; per spec, the
flex:none content should be allowed its full content width. This
currently works in Chrome, Edge, Safari, and Opera.

wpt-commits: a02389e2cc84576b8aa35bff9658f6db39003ed8
wpt-pr: 9518
wpt-commits: a02389e2cc84576b8aa35bff9658f6db39003ed8
wpt-pr: 9518
2018-03-31 22:21:16 +01:00

20 lines
628 B
HTML

<!DOCTYPE html>
<title>Specifying flex:none on wrappable content should give content its full width</title>
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-common">
<meta name="assert" content="When content has flex:none, it should be given its full width">
<link rel="match" href="flexbox_flex-none-wrappable-content-ref.html">
<style>
span {
font-family: Ahem;
color: green;
}
</style>
<div style="display: flex; width: 5px;">
<div style="flex: none;">
<span>XXX XXX XXX</span>
</div>
</div>
<div style="margin-top: 1em;">You should see three green rectangles above, all on the same line.</div>