bug 764805 - reftest for style descriptors on src:local font face. r=jdaggett

This commit is contained in:
Jonathan Kew 2012-06-28 10:59:39 +01:00
parent 6623c879e7
commit 3664cc8cb5
5 changed files with 91 additions and 3 deletions

View File

@ -7,7 +7,8 @@
<style type="text/css">
body {
font-family: Nimbus Sans L, Helvetica, Bitstream Vera Sans,
Arial, Liberation Sans, SwissA, serif;
Arial, Liberation Sans, SwissA,
Droid Sans, Roboto, serif;
}
</style>
</head>

View File

@ -34,7 +34,8 @@
font-family: "Local";
src: local(Nimbus Sans L), local(NimbusSansL-Regu),
local(Helvetica), local(Bitstream Vera Sans),
local(Arial), local(Liberation Sans), local(SwissA);
local(Arial), local(Liberation Sans), local(SwissA),
local(Droid Sans), local(Roboto);
font-weight: 100;
}
@font-face {
@ -42,7 +43,8 @@
src: local(Nimbus Sans L Bold), local(NimbusSansL-Bold),
local(Helvetica Bold), local(Helvetica-Bold),
local(Bitstream Vera Sans Bold),
local(Arial Bold), local(Liberation Sans Bold), local(SwissA Bold);
local(Arial Bold), local(Liberation Sans Bold), local(SwissA Bold),
local(Droid Sans Bold), local(Roboto Bold);
font-weight: normal;
}
body { font-family: Local, serif }

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: local(Nimbus Sans L), local(NimbusSansL-Regu),
local(Helvetica), local(Bitstream Vera Sans),
local(Arial), local(Liberation Sans), local(SwissA),
local(Droid Sans), local(Roboto);
}
div {
font-family: test, serif;
margin: 10px;
}
</style>
</head>
<body>
<div style="font-family:serif">
This serif font should NOT be used below.
</div>
<hr>
<div>
These three lines should all use the same font face.
</div>
<div>
This line should NOT be bold.
</div>
<div>
This line should NOT be italic.
</div>
</body>
</html>

View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@font-face {
font-family: test;
src: local(Nimbus Sans L), local(NimbusSansL-Regu),
local(Helvetica), local(Bitstream Vera Sans),
local(Arial), local(Liberation Sans), local(SwissA),
local(Droid Sans), local(Roboto);
}
@font-face {
font-family: test;
font-style: italic;
src: local(Nimbus Sans L), local(NimbusSansL-Regu),
local(Helvetica), local(Bitstream Vera Sans),
local(Arial), local(Liberation Sans), local(SwissA),
local(Droid Sans), local(Roboto);
}
@font-face {
font-family: test;
font-weight: bold;
src: local(Nimbus Sans L), local(NimbusSansL-Regu),
local(Helvetica), local(Bitstream Vera Sans),
local(Arial), local(Liberation Sans), local(SwissA),
local(Droid Sans), local(Roboto);
}
div {
font-family: test, serif;
margin: 10px;
}
</style>
</head>
<body>
<div style="font-family:serif">
This serif font should NOT be used below.
</div>
<hr>
<div>
These three lines should all use the same font face.
</div>
<div>
<b>This line should NOT be bold.</b>
</div>
<div>
<i>This line should NOT be italic.</i>
</div>
</body>
</html>

View File

@ -94,7 +94,10 @@ HTTP(..) == ex-unit-1-dynamic.html ex-unit-1-ref.html
# random-if(!cocoaWidget) HTTP(..) == src-format-arabic.html src-format-arabic-aat-ref.html
# random-if(cocoaWidget) HTTP(..) == src-format-arabic.html src-format-arabic-ot-ref.html
# bug 769194 - src:local() completely broken on android
fails-if(Android) == local-1.html local-1-ref.html
fails-if(Android) == local-styled-1.html local-styled-1-ref.html
HTTP(..) == synthetic-weight-style.html synthetic-weight-style-ref.html
HTTP(..) == synthetic-variations.html synthetic-variations-ref.html