зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1917056 Part 3 - Add WPTs for table intrinsic size. r=layout-reviewers,emilio
`table-intrinsic-size-001.html` and `table-intrinsic-size-002.html` test `inline-size` and `max-inline-size` on the table elements, respectively. They currently pass on Nightly, but will fail if the special logic in IntrinsicForAxis() is removed. Since we lacked test coverage for this scenario, I added these tests. `table-intrinsic-size-003.html` and `table-intrinsic-size-004.html` tests the intrinsic size when table has orthogonal writing mode. They fail due to bug 1310551. Differential Revision: https://phabricator.services.mozilla.com/D221237
This commit is contained in:
Родитель
941c164da5
Коммит
262ee52a07
|
@ -0,0 +1,3 @@
|
|||
[table-intrinsic-size-003.html]
|
||||
expected: FAIL
|
||||
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1310551
|
|
@ -0,0 +1,3 @@
|
|||
[table-intrinsic-size-004.html]
|
||||
expected: FAIL
|
||||
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1310551
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size.">
|
||||
|
||||
<style>
|
||||
.outer {
|
||||
width: min-content;
|
||||
background: green;
|
||||
}
|
||||
.table {
|
||||
display: table;
|
||||
inline-size: 30px; /* Smaller than .content's inline size */
|
||||
block-size: 100px;
|
||||
border-inline: 10px solid green;
|
||||
margin-inline: 10px;
|
||||
}
|
||||
.content {
|
||||
inline-size: 60px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div class="outer">
|
||||
<div class="table">
|
||||
<div class="content"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size.">
|
||||
|
||||
<style>
|
||||
.outer {
|
||||
width: min-content;
|
||||
background: green;
|
||||
}
|
||||
.table {
|
||||
display: table;
|
||||
max-inline-size: 30px; /* Smaller than .content's inline size */
|
||||
block-size: 100px;
|
||||
border-inline: 10px solid green;
|
||||
margin-inline: 10px;
|
||||
}
|
||||
.content {
|
||||
inline-size: 60px;
|
||||
block-size: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div class="outer">
|
||||
<div class="table">
|
||||
<div class="content"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size.">
|
||||
|
||||
<style>
|
||||
.outer {
|
||||
width: min-content;
|
||||
background: green;
|
||||
}
|
||||
.table {
|
||||
writing-mode: vertical-rl;
|
||||
display: table;
|
||||
inline-size: 30px; /* Smaller than .content's inline size */
|
||||
block-size: 100px;
|
||||
border-inline: 10px solid green;
|
||||
}
|
||||
.content {
|
||||
inline-size: 80px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div class="outer">
|
||||
<div class="table">
|
||||
<div class="content"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917056">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="This test verifies that a table's content-box inline size is never smaller than its minimum intrinsic inline size.">
|
||||
|
||||
<style>
|
||||
.outer {
|
||||
width: min-content;
|
||||
background: green;
|
||||
}
|
||||
.table {
|
||||
writing-mode: vertical-rl;
|
||||
display: table;
|
||||
max-inline-size: 30px; /* Smaller than .content's inline size */
|
||||
block-size: 100px;
|
||||
border-inline: 10px solid green;
|
||||
}
|
||||
.content {
|
||||
inline-size: 80px;
|
||||
block-size: 100px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div class="outer">
|
||||
<div class="table">
|
||||
<div class="content"></div>
|
||||
</div>
|
||||
</div>
|
Загрузка…
Ссылка в новой задаче