зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1622935 Part 4d - Add more reftests for single-line flex container in zero height multicols. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D74497
This commit is contained in:
Родитель
d2c9a57153
Коммит
546f228245
|
@ -0,0 +1,46 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||||
|
<html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>CSS Flexbox Test Reference: Fragmentation of height:auto single-line column flex container in a zero height multicol</title>
|
||||||
|
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||||
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||||
|
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.multicol {
|
||||||
|
column-count: 2;
|
||||||
|
height: 0;
|
||||||
|
border: 1px solid black;
|
||||||
|
margin-bottom: 30px; /* Just to separate each sub-testcase visually. */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexContainer {
|
||||||
|
display: block;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxDecorationBreak {
|
||||||
|
padding: 5px;
|
||||||
|
box-decoration-break: clone;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- Basic one with padding on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Larger padding and box-decoration-break:clone on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer boxDecorationBreak">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||||
|
<html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>CSS Flexbox Test: Fragmentation of height:auto single-line column flex container in a zero height multicol</title>
|
||||||
|
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||||
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||||
|
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
|
||||||
|
<link rel="match" href="flexbox-single-column-5-ref.html">
|
||||||
|
<meta name="assert" content="This test verifies fragmentation of flex containers can make progress in a zero height multicol.">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.multicol {
|
||||||
|
column-count: 2;
|
||||||
|
height: 0;
|
||||||
|
border: 1px solid black;
|
||||||
|
margin-bottom: 30px; /* Just to separate each sub-testcase visually. */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxDecorationBreak {
|
||||||
|
padding: 5px;
|
||||||
|
box-decoration-break: clone;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- Basic one with padding on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Larger padding and box-decoration-break:clone on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer boxDecorationBreak">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,46 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||||
|
<html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>CSS Flexbox Test Reference: Fragmentation of height:auto single-line row flex container in a zero height multicol</title>
|
||||||
|
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||||
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||||
|
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.multicol {
|
||||||
|
column-count: 2;
|
||||||
|
height: 0;
|
||||||
|
border: 1px solid black;
|
||||||
|
margin-bottom: 30px; /* Just to separate each sub-testcase visually. */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexContainer {
|
||||||
|
display: block;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxDecorationBreak {
|
||||||
|
padding: 5px;
|
||||||
|
box-decoration-break: clone;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- Basic one with padding on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer">
|
||||||
|
<div>abcdef</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Larger padding and box-decoration-break:clone on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer boxDecorationBreak">
|
||||||
|
<div>abcdef</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- Any copyright is dedicated to the Public Domain.
|
||||||
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
||||||
|
<html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>CSS Flexbox Test: Fragmentation of height:auto single-line row flex container in a zero height multicol</title>
|
||||||
|
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||||
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||||
|
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
|
||||||
|
<link rel="match" href="flexbox-single-row-4-ref.html">
|
||||||
|
<meta name="assert" content="This test verifies fragmentation of flex containers can make progress in a zero height multicol.">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.multicol {
|
||||||
|
column-count: 2;
|
||||||
|
height: 0;
|
||||||
|
border: 1px solid black;
|
||||||
|
margin-bottom: 30px; /* Just to separate each sub-testcase visually. */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flexContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
flex-direction: row;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.boxDecorationBreak {
|
||||||
|
padding: 5px;
|
||||||
|
box-decoration-break: clone;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!-- Basic one with padding on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Larger padding and box-decoration-break:clone on the flex container.-->
|
||||||
|
<div class="multicol">
|
||||||
|
<div class="flexContainer boxDecorationBreak">
|
||||||
|
<div>abc</div><div>def</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -55,6 +55,7 @@ fuzzy-if(Android&&webrender,0-128,0-10) == flexbox-empty-2d.html flexbox-empty-2
|
||||||
== flexbox-single-column-3a.html flexbox-single-column-3-ref.html
|
== flexbox-single-column-3a.html flexbox-single-column-3-ref.html
|
||||||
== flexbox-single-column-3b.html flexbox-single-column-3-ref.html
|
== flexbox-single-column-3b.html flexbox-single-column-3-ref.html
|
||||||
== flexbox-single-column-4.html flexbox-single-column-4-ref.html
|
== flexbox-single-column-4.html flexbox-single-column-4-ref.html
|
||||||
|
== flexbox-single-column-5.html flexbox-single-column-5-ref.html
|
||||||
|
|
||||||
# Tests for how we fragment flex items in a single-line row flex container.
|
# Tests for how we fragment flex items in a single-line row flex container.
|
||||||
== flexbox-single-row-1a.html flexbox-single-row-1-ref.html
|
== flexbox-single-row-1a.html flexbox-single-row-1-ref.html
|
||||||
|
@ -68,3 +69,4 @@ fuzzy-if(Android&&webrender,0-128,0-10) == flexbox-empty-2d.html flexbox-empty-2
|
||||||
== flexbox-single-row-2.html flexbox-single-row-2-ref.html
|
== flexbox-single-row-2.html flexbox-single-row-2-ref.html
|
||||||
== flexbox-single-row-3a.html flexbox-single-row-3-ref.html
|
== flexbox-single-row-3a.html flexbox-single-row-3-ref.html
|
||||||
== flexbox-single-row-3b.html flexbox-single-row-3-ref.html
|
== flexbox-single-row-3b.html flexbox-single-row-3-ref.html
|
||||||
|
== flexbox-single-row-4.html flexbox-single-row-4-ref.html
|
||||||
|
|
Загрузка…
Ссылка в новой задаче