Bug 1772668 - Move text-align-last reftests to WPT. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D148335
This commit is contained in:
Tim Nguyen 2022-06-04 13:00:53 +00:00
parent 8adeaaa67f
commit d6f65f3847
36 changed files with 199 additions and 159 deletions

View File

@ -67,50 +67,6 @@ fuzzy-if(Android,0-231,0-653) == subpixel-lineheight-1a.html subpixel-lineheight
!= synthetic-bold-metrics-01.html synthetic-bold-metrics-01-notref.html
== synthetic-bold-papyrus-01.html synthetic-bold-papyrus-01-ref.html
== synthetic-bold-zero-width-01.html synthetic-bold-zero-width-01-ref.html
# Tests for text-align-last
== text-align-last-start.html text-align-last-start-ref.html
== text-align-last-end.html text-align-last-end-ref.html
== text-align-last-center.html text-align-last-center-ref.html
== text-align-last-justify.html text-align-last-justify-ref.html
== text-align-last-justify-rtl.html text-align-last-justify-rtl-ref.html
#
# Default values:
# text-align defaults to start. text-align-last defaults to auto, which is
# equivalent to the value of the text-align property except when text-align
# is set to justify, in which case it is currently equivalent to start
# This will need to change when we implement text-justify
== text-align-default-last-default.html text-align-start-last-start.html
== text-align-start-last-default.html text-align-start-last-start.html
== text-align-end-last-default.html text-align-end-last-end.html
== text-align-center-last-default.html text-align-center-last-center.html
== text-align-justify-last-default.html text-align-justify-last-start.html
# All combinations of text-align and text-align-last should give different results
# This only tests the combinations with the same value for text-align and
# different values for text-align-last
!= text-align-start-last-start.html text-align-start-last-end.html
!= text-align-start-last-start.html text-align-start-last-center.html
!= text-align-start-last-start.html text-align-start-last-justify.html
!= text-align-start-last-end.html text-align-start-last-center.html
!= text-align-start-last-end.html text-align-start-last-justify.html
!= text-align-start-last-center.html text-align-start-last-justify.html
!= text-align-end-last-start.html text-align-end-last-end.html
!= text-align-end-last-start.html text-align-end-last-center.html
!= text-align-end-last-start.html text-align-end-last-justify.html
!= text-align-end-last-end.html text-align-end-last-center.html
!= text-align-end-last-end.html text-align-end-last-justify.html
!= text-align-end-last-center.html text-align-end-last-justify.html
!= text-align-center-last-start.html text-align-center-last-end.html
!= text-align-center-last-start.html text-align-center-last-center.html
!= text-align-center-last-start.html text-align-center-last-justify.html
!= text-align-center-last-end.html text-align-center-last-center.html
!= text-align-center-last-end.html text-align-center-last-justify.html
!= text-align-center-last-center.html text-align-center-last-justify.html
!= text-align-justify-last-start.html text-align-justify-last-end.html
!= text-align-justify-last-start.html text-align-justify-last-center.html
!= text-align-justify-last-start.html text-align-justify-last-justify.html
!= text-align-justify-last-end.html text-align-justify-last-center.html
!= text-align-justify-last-end.html text-align-justify-last-justify.html
!= text-align-justify-last-center.html text-align-justify-last-justify.html
== text-align-left-in-rtl-block.html text-align-left-in-rtl-block-ref.html
== variation-selector-unsupported-1.html variation-selector-unsupported-1-ref.html
== white-space-1a.html white-space-1-ref.html

View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
p {
text-align-last: center;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
p {
text-align-last: justify;
}
</style>
</head>
<body>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
p {
text-align-last: justify;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
</body>
</html>

View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
p {
-moz-text-align: start;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-center-last-start.html">
<link rel="mismatch" href="text-align-center-last-end.html">
<link rel="mismatch" href="text-align-center-last-justify.html">
<style>
p {
text-align: center;
text-align-last: center;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,10 +3,12 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-center-last-center.html">
<style>
p {
text-align: center;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-center-last-start.html">
<link rel="mismatch" href="text-align-center-last-center.html">
<link rel="mismatch" href="text-align-center-last-justify.html">
<style>
p {
text-align: center;
text-align-last: end;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-center-last-start.html">
<link rel="mismatch" href="text-align-center-last-end.html">
<link rel="mismatch" href="text-align-center-last-center.html">
<style>
p {
text-align: center;
text-align-last: justify;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-center-last-center.html">
<link rel="mismatch" href="text-align-center-last-end.html">
<link rel="mismatch" href="text-align-center-last-justify.html">
<style>
p {
text-align: center;
text-align-last: start;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,10 +3,12 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-start-last-start.html">
<style>
p {
text-align: start;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-end-last-start.html">
<link rel="mismatch" href="text-align-end-last-end.html">
<link rel="mismatch" href="text-align-end-last-justify.html">
<style>
p {
text-align: end;
text-align-last: center;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,10 +3,12 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-end-last-end.html">
<style>
p {
text-align: end;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-end-last-start.html">
<link rel="mismatch" href="text-align-end-last-center.html">
<link rel="mismatch" href="text-align-end-last-justify.html">
<style>
p {
text-align: end;
text-align-last: end;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-end-last-start.html">
<link rel="mismatch" href="text-align-end-last-end.html">
<link rel="mismatch" href="text-align-end-last-center.html">
<style>
p {
text-align: end;
text-align-last: justify;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-end-last-center.html">
<link rel="mismatch" href="text-align-end-last-end.html">
<link rel="mismatch" href="text-align-end-last-justify.html">
<style>
p {
text-align: end;
text-align-last: start;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-justify-last-start.html">
<link rel="mismatch" href="text-align-justify-last-end.html">
<link rel="mismatch" href="text-align-justify-last-justify.html">
<style>
p {
text-align: justify;
text-align-last: center;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,7 +3,9 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-justify-last-start.html">
<style>
p {
text-align: justify;
margin-right: 310px;

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-justify-last-start.html">
<link rel="mismatch" href="text-align-justify-last-center.html">
<link rel="mismatch" href="text-align-justify-last-justify.html">
<style>
p {
text-align: justify;
text-align-last: end;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-justify-last-start.html">
<link rel="mismatch" href="text-align-justify-last-center.html">
<link rel="mismatch" href="text-align-justify-last-end.html">
<style>
p {
text-align: justify;
text-align-last: justify;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,7 +3,11 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-justify-last-end.html">
<link rel="mismatch" href="text-align-justify-last-center.html">
<link rel="mismatch" href="text-align-justify-last-justify.html">
<style>
p {
text-align: justify;
text-align-last: start;

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: center</title>
<meta charset="utf-8">
<style type="text/css">
<style>
p {
text-align: center;
}

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last: center</title>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-last-center-ref.html">
<style>
p {
text-align-last: center;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: end</title>
<meta charset="utf-8">
<style type="text/css">
<style>
p {
text-align: end;
}

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last: end</title>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-last-end-ref.html">
<style>
p {
text-align-last: end;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: justify</title>
<meta charset="utf-8">
<style type="text/css">
<style>
span.left {
position: relative;
float: left;

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: justify in RTL</title>
<meta charset="utf-8">
<style type="text/css">
<style>
span.left {
float: left;
}

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last: justify in RTL</title>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-last-justify-rtl-ref.html">
<style>
p {
text-align-last: justify;
}
</style>
</head>
<body>
<p dir="rtl">אמר המחבר</p>
</body>
</html>

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last: justify</title>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-last-justify-ref.html">
<style>
p {
text-align-last: justify;
}
</style>
</head>
<body>
<p>Lorem ipsum</p>
</body>
</html>

View File

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: start</title>
<meta charset="utf-8">
<style type="text/css">
<style>
p {
text-align-last: end;
text-align: start;
}
</style>
</head>

View File

@ -1,9 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>text-align-last</title>
<title>text-align-last: start</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-last-start-ref.html">
<style>
p {
text-align: end;
text-align-last: start;

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-start-last-start.html">
<link rel="mismatch" href="text-align-start-last-end.html">
<link rel="mismatch" href="text-align-start-last-justify.html">
<style>
p {
text-align: start;
text-align-last: center;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,10 +3,12 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="match" href="text-align-start-last-start.html">
<style>
p {
text-align: start;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-start-last-start.html">
<link rel="mismatch" href="text-align-start-last-center.html">
<link rel="mismatch" href="text-align-start-last-justify.html">
<style>
p {
text-align: start;
text-align-last: end;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-start-last-start.html">
<link rel="mismatch" href="text-align-start-last-center.html">
<link rel="mismatch" href="text-align-start-last-end.html">
<style>
p {
text-align: start;
text-align-last: justify;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>

View File

@ -3,11 +3,15 @@
<head>
<title>text-align-last</title>
<meta charset="utf-8">
<style type="text/css">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#text-align-last-property">
<link rel="mismatch" href="text-align-start-last-end.html">
<link rel="mismatch" href="text-align-start-last-center.html">
<link rel="mismatch" href="text-align-start-last-justify.html">
<style>
p {
text-align: start;
text-align-last: start;
margin-right:310px;
margin-right: 310px;
}
</style>
</head>