Bug 718539. Update reftests to use new font-feature-settings syntax. r=jkew

This commit is contained in:
John Daggett 2012-04-26 15:27:36 +09:00
parent 36057fec8a
commit a867268ca7
18 changed files with 140 additions and 12 deletions

View File

@ -4,7 +4,7 @@
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
-moz-font-feature-settings: "hlig=1";
-moz-font-feature-settings: "hlig";
}
body {
font-family: libertine, sans-serif;

View File

@ -4,13 +4,13 @@
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
-moz-font-feature-settings: "hlig=1";
-moz-font-feature-settings: "hlig";
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig=0,liga=0";
-moz-font-feature-settings: "hlig" off, "liga" off;
}
</style>
</head>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
-moz-font-feature-settings: "hlig" off;
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig" on;
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
-moz-font-feature-settings: "hlig";
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig" off;
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -9,7 +9,7 @@ body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig=1";
-moz-font-feature-settings: "hlig" on;
}
</style>
</head>

View File

@ -9,7 +9,7 @@ body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "liga=0";
-moz-font-feature-settings: "liga" 0;
}
</style>
</head>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig=1";
-moz-font-feature-settings: "hlig" off;
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig" off;
-moz-font-feature-settings: "hlig=1";
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig=0";
-moz-font-feature-settings: "hlig";
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -0,0 +1,20 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: libertine;
src: url(../fonts/LinLibertine_Re-4.7.5.woff) format("woff");
}
body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "hlig";
-moz-font-feature-settings: "hlig=0";
}
</style>
</head>
<body lang="en">
fastest firefox
</body>
</html>

View File

@ -10,7 +10,7 @@ body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "liga=0,liga=1";
-moz-font-feature-settings: "liga" 0, "liga" 1;
}
</style>
</head>

View File

@ -10,7 +10,7 @@ body {
font-family: libertine, sans-serif;
font-size: 400%;
line-height: 2em;
-moz-font-feature-settings: "liga=1,liga=0";
-moz-font-feature-settings: "liga" 1, "liga" 0;
}
</style>
</head>

View File

@ -28,10 +28,18 @@ HTTP(..) == font-features-turkish.html font-features-noliga.html
# compare feature specified within @font-face to same feature in style rule
HTTP(..) == font-features-hlig-2.html font-features-hlig.html
HTTP(..) == font-features-hlig-4.html font-features-hlig.html
HTTP(..) != font-features-hlig-5.html font-features-hlig.html
# check that feature in style rule overrides @font-face
HTTP(..) == font-features-hlig-3.html font-features-noliga.html
# make sure old syntax usage never interferes with new syntax usage
HTTP(..) == font-features-oldsyntax-1.html font-features-ref.html
HTTP(..) == font-features-oldsyntax-2.html font-features-ref.html
HTTP(..) == font-features-oldsyntax-3.html font-features-hlig.html
HTTP(..) == font-features-oldsyntax-4.html font-features-hlig.html
# compare -moz-font-language-override rendering to lang-tagged rendering
HTTP(..) == font-features-turkish-override-1.html font-features-turkish.html
HTTP(..) == font-features-turkish-override-2.html font-features-turkish.html

View File

@ -10,7 +10,7 @@
body {
margin: 20px;
font: 100px test;
-moz-font-feature-settings: "TST1=1,FTP2=1";
-moz-font-feature-settings: "TST1", "FTP2";
}
p { margin: 0; padding: 0; }
</style>

View File

@ -10,7 +10,7 @@
body {
margin: 20px;
font: 100px test;
-moz-font-feature-settings: "TST1=1";
-moz-font-feature-settings: "TST1";
}
p { margin: 0; padding: 0; }
</style>

View File

@ -10,7 +10,7 @@
body {
margin: 20px;
font: 100px test;
-moz-font-feature-settings: "TST1=1";
-moz-font-feature-settings: "TST1";
}
p { margin: 0; padding: 0; }
</style>

View File

@ -10,7 +10,7 @@
body {
margin: 20px;
font: 100px test;
-moz-font-feature-settings: "TST1=1";
-moz-font-feature-settings: "TST1";
}
p { margin: 0; padding: 0; }
</style>

View File

@ -10,7 +10,7 @@
body {
margin: 20px;
font: 100px test;
-moz-font-feature-settings: "TST1=1";
-moz-font-feature-settings: "TST1";
}
p { margin: 0; padding: 0; }
</style>