mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #1838 - Part 7: Update tests
This commit is contained in:
parent
5800b95cd0
commit
870fee82e6
15 changed files with 644 additions and 38 deletions
|
|
@ -0,0 +1,97 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<!--
|
||||
Reference for the correctness of gaps in horizontal and vertical multi-line
|
||||
flex containers.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: Testing row and column gaps in horizontal and vertical multi-line flex containers with the space-around property and auto margins</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.outerBox {
|
||||
width: 200px;
|
||||
height: 220px;
|
||||
border: 1px solid black;
|
||||
float: left;
|
||||
}
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
align-content: space-around;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.rowNoWrap {
|
||||
flex-flow: row nowrap;
|
||||
}
|
||||
.columnNoWrap {
|
||||
flex-flow: column nowrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.autoLBMargins {
|
||||
margin-left: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.autoBMargin {
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.right20 {
|
||||
margin-right: 20px;
|
||||
}
|
||||
.bottom40 {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.tb30100 {
|
||||
margin-top: 30px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
.lr3080 {
|
||||
margin-left: 30px;
|
||||
margin-right: 80px;
|
||||
}
|
||||
.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
.h220 {
|
||||
height: 220px;
|
||||
}
|
||||
.fleft {
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="outerBox">
|
||||
<div class="flexContainer w200 rowNoWrap tb30100">
|
||||
<div class="item right20"></div>
|
||||
<div class="item right20"></div>
|
||||
<div class="item right20"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer w200 rowNoWrap">
|
||||
<div class="item autoLBMargins right20"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outerBox">
|
||||
<div class="flexContainer fleft h220 columnNoWrap lr3080">
|
||||
<div class="item bottom40"></div>
|
||||
<div class="item bottom40"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer fleft h220 columnNoWrap">
|
||||
<div class="item bottom40"></div>
|
||||
<div class="item bottom40"></div>
|
||||
<div class="item autoBMargin"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<!--
|
||||
Testcase for the correctness of gaps in horizontal and vertical multi-line
|
||||
flex containers.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Testing row and column gaps in horizontal and vertical multi-line flex containers with the space-around property and auto margins</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align/#gap-flex">
|
||||
<link rel="match" href="flexbox-column-row-gap-001-ref.html">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
width: 200px;
|
||||
height: 220px;
|
||||
border: 1px solid black;
|
||||
column-gap: 10%;
|
||||
row-gap: 40px;
|
||||
align-content: space-around;
|
||||
justify-content: space-around;
|
||||
float: left;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.columnWrap {
|
||||
flex-flow: column wrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.autoLBMargins {
|
||||
margin-left: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer columnWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<!--
|
||||
Testcase for the correctness of gaps in vertical writing mode
|
||||
multi-line flex containers.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: Testing row and column gaps in vertical writing mode multi-line flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
width: 220px;
|
||||
height: 200px;
|
||||
border: 1px solid black;
|
||||
align-content: flex-start;
|
||||
justify-content: flex-end;
|
||||
float: left;
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.columnWrap {
|
||||
flex-flow: column wrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.b20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.t20 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.l10 {
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap">
|
||||
<div class="item b20"></div>
|
||||
<div class="item b20"></div>
|
||||
<div class="item b20"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item l10 b20"></div>
|
||||
<div class="item l10"></div>
|
||||
</div>
|
||||
<div class="flexContainer columnWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item l10"></div>
|
||||
<div class="item l10"></div>
|
||||
<div class="item l10"></div>
|
||||
<div class="item l10"></div>
|
||||
<div class="item l10 t20"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<!--
|
||||
Testcase for the correctness of gaps in vertical writing mode multi-line
|
||||
flex containers.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Testing row and column gaps in vertical writing mode multi-line flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align/#gap-flex">
|
||||
<link rel="match" href="flexbox-column-row-gap-002-ref.html">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
width: 220px;
|
||||
height: 200px;
|
||||
border: 1px solid black;
|
||||
column-gap: 10%;
|
||||
row-gap: 10px;
|
||||
align-content: flex-start;
|
||||
justify-content: flex-end;
|
||||
float: left;
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.columnWrap {
|
||||
flex-flow: column wrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer columnWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: Testing cross size computation with row and column gaps in horizontal multi-line flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<meta charset="utf-8">
|
||||
</html>
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
border: 1px solid black;
|
||||
column-gap: 20px;
|
||||
row-gap: 40px;
|
||||
align-content: space-around;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.autoLBMargins {
|
||||
margin-left: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
.h100 {
|
||||
height: 100px;
|
||||
}
|
||||
.h90 {
|
||||
height: 90px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap w200 h100">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer rowWrap w200 h90">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Testing cross size computation with row and column gaps in horizontal multi-line flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align/#gap-flex">
|
||||
<link rel="match" href="flexbox-column-row-gap-003-ref.html">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
border: 1px solid black;
|
||||
column-gap: 20px;
|
||||
row-gap: 40px;
|
||||
align-content: space-around;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: lightblue;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.autoLBMargins {
|
||||
margin-left: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.w200 {
|
||||
width: 200px;
|
||||
}
|
||||
.hclamp {
|
||||
max-height: 90px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap w200">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer rowWrap w200 hclamp">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
<div class="item autoLBMargins"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Reference: Testing percentage gap resolution in flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
border: 2px solid black;
|
||||
column-gap: 10px;
|
||||
align-content: start;
|
||||
justify-content: start;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: yellow;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
flex: none;
|
||||
}
|
||||
.vertLR {
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.colWrap {
|
||||
flex-flow: column wrap;
|
||||
}
|
||||
.w50 {
|
||||
width: 50px;
|
||||
}
|
||||
.h100 {
|
||||
height: 100px;
|
||||
}
|
||||
.w100 {
|
||||
width: 100px;
|
||||
}
|
||||
.noWrap {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap w50 h100">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer colWrap w50 h100 noWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer vertLR rowWrap h100 w100">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer vertLR colWrap w100 noWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Testing percentage gap resolution in flex containers</title>
|
||||
<link rel="author" title="Mihir Iyer" href="mailto:miyer@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align/#column-row-gap">
|
||||
<link rel="match" href="flexbox-column-row-gap-004-ref.html">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5081">
|
||||
<meta charset="utf-8">
|
||||
<meta name="assert" content="% row-gaps in a flexbox with indefinite block size are treated as 'normal'." />
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
border: 2px solid black;
|
||||
row-gap: 20%;
|
||||
column-gap: 10%;
|
||||
align-content: start;
|
||||
justify-content: start;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.item {
|
||||
border: 1px solid blue;
|
||||
background: yellow;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
flex: none;
|
||||
}
|
||||
.vertLR {
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
.rowWrap {
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
.colWrap {
|
||||
flex-flow: column wrap;
|
||||
}
|
||||
.w50 {
|
||||
width: 50px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer rowWrap w50">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer colWrap w50">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer vertLR rowWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
<div class="flexContainer vertLR colWrap">
|
||||
<div class="item"></div>
|
||||
<div class="item"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Flexible Box Layout Test Reference: Test flexbox intrinsic inline-size, gap, and absolute-positioned children</title>
|
||||
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
|
||||
|
||||
<style>
|
||||
div {
|
||||
display: inline-flex;
|
||||
background: fuchsia;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<span>B</span>
|
||||
<span style="width: 100px;"></span>
|
||||
<span>C</span>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Flexible Box Layout Test: Test flexbox intrinsic inline-size, gap, and absolute-positioned children</title>
|
||||
<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/#intrinsic-sizes">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-align-3/#gaps">
|
||||
<link rel="match" href="flexbox-gap-position-absolute-ref.html">
|
||||
<meta name="assert" content="This test verifies the absolute-positioned children do not contribute the gap size to the flexbox's intrinsic inline-size.">
|
||||
|
||||
<style>
|
||||
div {
|
||||
display: inline-flex;
|
||||
gap: 100px;
|
||||
background: fuchsia;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<span style="position: absolute;"></span>
|
||||
<span style="position: fixed;"></span>
|
||||
<span>B</span>
|
||||
<span>C</span>
|
||||
</div>
|
||||
</html>
|
||||
|
|
@ -91,6 +91,13 @@
|
|||
== flexbox-collapsed-item-horiz-002.html flexbox-collapsed-item-horiz-002-ref.html
|
||||
== flexbox-collapsed-item-horiz-003.html flexbox-collapsed-item-horiz-003-ref.html
|
||||
|
||||
# Tests for "row gap" and "column gap"
|
||||
== flexbox-column-row-gap-001.html flexbox-column-row-gap-001-ref.html
|
||||
== flexbox-column-row-gap-002.html flexbox-column-row-gap-002-ref.html
|
||||
== flexbox-column-row-gap-003.html flexbox-column-row-gap-003-ref.html
|
||||
== flexbox-column-row-gap-004.html flexbox-column-row-gap-004-ref.html
|
||||
== flexbox-gap-position-absolute.html flexbox-gap-position-absolute-ref.html
|
||||
|
||||
# Tests for flex-flow shorthand property
|
||||
== flexbox-flex-flow-001.html flexbox-flex-flow-001-ref.html
|
||||
== flexbox-flex-flow-002.html flexbox-flex-flow-002-ref.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue