mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Add test for font-family issue that some other browsers get wrong (from bug 499421).
This commit is contained in:
parent
2962f5d981
commit
514a225d80
@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>CSS 2.1: Font matching algorithm (reference)</title>
|
||||||
|
<link rel="author" title="L. David Baron" href="http://dbaron.org/" />
|
||||||
|
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,61 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<title>CSS 2.1: Font matching algorithm</title>
|
||||||
|
<link rel="author" title="L. David Baron" href="http://dbaron.org/" />
|
||||||
|
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
|
||||||
|
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#algorithm" />
|
||||||
|
<meta name="assert" content="That the 'UA-dependent default 'font-family'' described in step (5) does not vary based on the ancestor's font-family property." />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="font-family: Arial, Helvetica, sans-serif">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Arial, Helvetica">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Arial">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Times New Roman, Times, serif">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Times New Roman, Times">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Times New Roman">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Courier New, Courier, monospace">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style="font-family: Verdana">
|
||||||
|
<div style="font-family: FontDoesNotExist">
|
||||||
|
Every line of text in this page should be in the same font.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
1
layout/reftests/font-matching/reftest.list
Normal file
1
layout/reftests/font-matching/reftest.list
Normal file
@ -0,0 +1 @@
|
|||||||
|
== CSS21-t1502-no-inherited-font-family.xhtml CSS21-t1502-no-inherited-font-family-ref.xhtml
|
@ -71,6 +71,9 @@ include floats/reftest.list
|
|||||||
# font-face
|
# font-face
|
||||||
include font-face/reftest.list
|
include font-face/reftest.list
|
||||||
|
|
||||||
|
# font matching
|
||||||
|
include font-matching/reftest.list
|
||||||
|
|
||||||
# forms
|
# forms
|
||||||
include forms/reftest.list
|
include forms/reftest.list
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user