Skip to content

Commit

Permalink
Bug 1523562 [wpt PR 14607] - Sync Mozilla CSS tests as of 2018-12-19,…
Browse files Browse the repository at this point in the history
… a=testonly

Automatic update from web-platform-tests
Sync Mozilla CSS tests as of 2018-12-20 (#14607)

Sync Mozilla CSS tests as of https://hg.mozilla.org/mozilla-central/rev/49be2c1eb4c8c64cadd4297ff9eb5454f4bb4a93 .

This contains changes from [bug 1322780](https://bugzilla.mozilla.org/show_bug.cgi?id=1322780) by BorisChiou, reviewed by dholbert.
--

wpt-commits: 8b2ce21a53705a0ac50ae66824be2229eb114579
wpt-pr: 14607

UltraBlame original commit: 91f314cf9ea056321628ded8ad618d36bca9b6ff
  • Loading branch information
marco-c committed Oct 3, 2019
1 parent b922ad9 commit b30585c
Show file tree
Hide file tree
Showing 21 changed files with 1,414 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ include selectors4/reftest.list
# Shapes Level 1
include shapes1/reftest.list

# CSS Intrinsic & Extrinsic Sizing Module Level 3
include sizing/reftest.list

# Text Level 3
include text3/reftest.list

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html>
<title>CSS Reference Case: Basic cases with max-content and min-content</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<meta name="flags" content="ahem">
<style>
html,body {
margin: 0;
}
.container {
width: max-content;
height: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container > * {
display: inline-block;
border: 1px solid blue;
}

.container-vertical {
width: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container-vertical > * {
writing-mode: vertical-lr;
border: 1px solid blue;
}
</style>
</head>
<body>
<div class="container">
<div>min<br>in the box</div>
<div>max<br>in the box</div>
</div>

<div class="container-vertical">
<div>min<br>in the box</div>
<div>max<br>in the box</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Basic cases of width/height on block axis with max-content and min-content</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="block-size-with-min-or-max-content-1-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}
.container {
width: max-content;
height: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container > * {
display: inline-block;
border: 1px solid blue;
}
.container-vertical {
width: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container-vertical > * {
writing-mode: vertical-lr;
border: 1px solid blue;
}
</style>
</head>
<body>
<div class="container">
<div class="height-min-content">min<br>in the box</div>
<div class="height-max-content">max<br>in the box</div>
</div>

<div class="container-vertical">
<div class="width-min-content">min<br>in the box</div>
<div class="width-max-content">max<br>in the box</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Basic cases of block-size with max-content and min-content</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="block-size-with-min-or-max-content-1-ref.html">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="support/ahem.css">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}
.container {
inline-size: max-content;
height: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container > * {
display: inline-block;
border: 1px solid blue;
}
.container-vertical {
width: 50px;
border: 1px solid black;

font-family: Ahem;
font-size: 15px;
line-height: 21px;
}
.container-vertical > * {
writing-mode: vertical-lr;
border: 1px solid blue;
}
</style>
</head>
<body>
<div class="container">
<div class="block-min-content">min<br>in the box</div>
<div class="block-max-content">max<br>in the box</div>
</div>

<div class="container-vertical">
<div class="block-min-content">min<br>in the box</div>
<div class="block-max-content">max<br>in the box</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Reference Case: Block size with max-content and min-content in a table</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<style>
html,body {
margin: 0;
}
table {
border: 2px solid black;
}

td {
border: 2px solid lime;
}

.item {
height: 50px;
width: 50px;
border: 1px solid blue;
}

.container {
writing-mode: vertical-lr;
}

.small { block-size: 1px; }
.big { block-size: 150px; }
</style>
</head>
<body>
<div class="container">
<table class="big"><td><div class="item"></div></td></table>
<table class="big"><td><div class="item"></div></td></table>

<table><td class="small"><div class="item"></div></td></table>
<table><td class="small"><div class="item"></div></td></table>
</div>

<table class="big"><td><div class="item"></div></td></table>
<table class="big"><td><div class="item"></div></td></table>

<table><td class="small"><div class="item"></div></td></table>
<table><td class="small"><div class="item"></div></td></table>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Basic cases of width/height (block axis) with max-content and min-content in a table</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="block-size-with-min-or-max-content-table-1-ref.html">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}

table {
border: 2px solid black;
}

td {
border: 2px solid lime;
}

.item {
height: 50px;
width: 50px;
border: 1px solid blue;
}

.container {
writing-mode: vertical-lr;
}

.small-h { height: 1px; }
.big-h { height: 150px; }
.small-w { width: 1px; }
.big-w { width: 150px; }
</style>
</head>
<body>
<div class="container">
<table class="big-w max-width-min-content">
<td><div class="item"></div></td>
</table>
<table class="big-w max-width-max-content">
<td><div class="item"></div></td>
</table>

<table class="small-w min-width-min-content">
<td><div class="item"></div></td>
</table>
<table class="small-w min-width-max-content">
<td><div class="item"></div></td>
</table>
</div>

<table class="big-h max-height-min-content">
<td><div class="item"></div></td>
</table>
<table class="big-h max-height-max-content">
<td><div class="item"></div></td>
</table>

<table class="small-h min-height-min-content">
<td><div class="item"></div></td>
</table>
<table class="small-h min-height-max-content">
<td><div class="item"></div></td>
</table>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: Basic cases of block-size with max-content and min-content in a table</title>
<meta charset="utf-8">
<link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#sizing-values">
<link rel="match" href="block-size-with-min-or-max-content-table-1-ref.html">
<link rel="stylesheet" type="text/css" href="support/min-content-max-content.css">
<style>
html,body {
margin: 0;
}

table {
border: 2px solid black;
}

td {
border: 2px solid lime;
}

.item {
height: 50px;
width: 50px;
border: 1px solid blue;
}

.container {
writing-mode: vertical-lr;
}

.small { block-size: 1px; }
.big { block-size: 150px; }
</style>
</head>
<body>
<div class="container">
<table class="big max-block-min-content">
<td><div class="item"></div></td>
</table>
<table class="big max-block-max-content">
<td><div class="item"></div></td>
</table>

<table class="small min-block-min-content">
<td><div class="item"></div></td>
</table>
<table class="small min-block-max-content">
<td><div class="item"></div></td>
</table>
</div>

<table class="big max-block-min-content">
<td><div class="item"></div></td>
</table>
<table class="big max-block-max-content">
<td><div class="item"></div></td>
</table>

<table class="small min-block-min-content">
<td><div class="item"></div></td>
</table>
<table class="small min-block-max-content">
<td><div class="item"></div></td>
</table>
</body>
</html>
Loading

0 comments on commit b30585c

Please sign in to comment.