mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 764805 - reftest for style descriptors on src:local font face. r=jdaggett
This commit is contained in:
parent
6623c879e7
commit
3664cc8cb5
@ -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 }
|
||||
|
33
layout/reftests/font-face/local-styled-1-ref.html
Normal file
33
layout/reftests/font-face/local-styled-1-ref.html
Normal 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>
|
49
layout/reftests/font-face/local-styled-1.html
Normal file
49
layout/reftests/font-face/local-styled-1.html
Normal 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>
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user