Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/flex-item-content-is-min-width-max-content.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="flex-item-content-is-min-width-max-content-ref.html">
<meta name="assert" content="This checks that flex item is sized correctly when its content has min-width: max-content">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
.flex {
width: 0px;
display: flex;
font-family: Ahem;
font-size: 20px;
}
.flex_item {
background-color: green;
}
.content {
min-width: max-content;
color: transparent;
}
</style>
<div class=flex>
<div class=flex_item>
<div class=content>X X X</div>
</div>
</div>