Files
tubestation/layout/reftests/flexbox/flexbox-table-flex-items-5.html
Boris Chiou 32e62fc910 Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

Differential Revision: https://phabricator.services.mozilla.com/D7536
2018-12-18 18:47:37 +00:00

53 lines
1017 B
HTML

<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<meta charset="utf-8">
<title>
CSS Test: Testing that tables with "table-layout:fixed" can shrink
from their default flex base size to fit their flex container.
</title>
<style>
.container {
display: flex;
width: 300px;
border: 1px solid black;
margin-bottom: 5px;
}
.forceMaxContent > * {
width: max-content;
}
.container > * {
margin: 5px;
}
table {
width: 100%;
height: 30px;
table-layout: fixed;
background: lightgray;
}
</style>
</head>
<body>
<div class="container">
<div>
<table><td></td></table>
</div>
<div>
<table><td></td></table>
</div>
</div>
<div class="container forceMaxContent">
<div>
<table><td></td></table>
</div>
<div>
<table><td></td></table>
</div>
</div>
</body>
</html>