зеркало из https://github.com/mozilla/pjs.git
bug 764805 - reftest for style descriptors on src:local font face. r=jdaggett
This commit is contained in:
Родитель
e7311ccb60
Коммит
d06313ef33
|
@ -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>
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче