mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'797e75946c24d0625f04247b16d33c26d4ada273'
This commit is contained in:
parent
4339b3bab4
commit
44e249bebb
414 changed files with 12588 additions and 11565 deletions
|
@ -42,6 +42,21 @@ default to regular max size.</p>
|
|||
<div style="width:100px;border:1px solid black;flex-shrink:0">flex div</div>
|
||||
</div>
|
||||
|
||||
<p>flex width:min-content</p>
|
||||
<div id="flextest_min1" style="display: flex; width: min-content;">
|
||||
<table style="flex: 0 0 content; min-width: 0px;">
|
||||
<td style="width: 100px;"></td>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="flextest_min2" style="display: flex; width: min-content;">
|
||||
<div style="flex: 0 0 auto; min-width: 0px;">
|
||||
<table>
|
||||
<td style="width: 100px;"></td>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Grid</h3>
|
||||
<p>grid width:auto</p>
|
||||
<div id="grid" style="display:grid;grid-template-columns: 1fr;width:auto">
|
||||
|
@ -90,6 +105,20 @@ default to regular max size.</p>
|
|||
assert_greater_than(table.offsetWidth, document.body.offsetWidth);
|
||||
}, "table's width inside flexbox width:max-content is infinite");
|
||||
|
||||
test(_ => {
|
||||
let flexbox = document.querySelector("#flextest_min1");
|
||||
let table = flexbox.querySelector("table");
|
||||
assert_equals(flexbox.offsetWidth, 100);
|
||||
assert_greater_than(table.offsetWidth, document.body.offsetWidth);
|
||||
}, "table's width inside flexbox width:min-content is infinite, but the flexbox is finite; scenario 1");
|
||||
|
||||
test(_ => {
|
||||
let flexbox = document.querySelector("#flextest_min2");
|
||||
let table = flexbox.querySelector("table");
|
||||
assert_equals(flexbox.offsetWidth, 100);
|
||||
assert_greater_than(table.offsetWidth, document.body.offsetWidth);
|
||||
}, "table's width inside flexbox width:min-content is infinite, but the flexbox is finite; scenario 2");
|
||||
|
||||
test(_ => {
|
||||
let grid = document.querySelector("#grid");
|
||||
let table = grid.querySelector("table");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue