-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1523562 [wpt PR 14607] - Sync Mozilla CSS tests as of 2018-12-19,…
… 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
Showing
21 changed files
with
1,414 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...rts/mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-1-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
54 changes: 54 additions & 0 deletions
54
...mports/mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-1a.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
54 changes: 54 additions & 0 deletions
54
...mports/mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-1b.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
48 changes: 48 additions & 0 deletions
48
...zilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-table-1-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
70 changes: 70 additions & 0 deletions
70
.../mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-table-1a.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
68 changes: 68 additions & 0 deletions
68
.../mozilla/mozilla-central-reftests/sizing/block-size-with-min-or-max-content-table-1b.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.