mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
html: Parse a comma-separated list of faces in the <font>
tag (#32622)
This change parses a comma-separated list of faces in the `<font>` tag and also moves the parsing code from `stylo` to Servo. This means that the servo-specific code can be removed from stylo decreasing the differences between Gecko and Servo's version of `stylo`.
This commit is contained in:
parent
47678a61b9
commit
da2de4fc68
5 changed files with 89 additions and 4 deletions
|
@ -7576,6 +7576,19 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"font-element-comma-separated.html": [
|
||||
"db7e13f2ca3db0ebd3c610c3c25b052749b85e30",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/_mozilla/mozilla/font-element-comma-separated-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"fullscreen": {
|
||||
"reftests": {
|
||||
"fullscreen-baseline.html": [
|
||||
|
@ -10436,6 +10449,10 @@
|
|||
"6783d72a6629f4938df8126dc5114d936eaaa48f",
|
||||
[]
|
||||
],
|
||||
"font-element-comma-separated-ref.html": [
|
||||
"97efe2b83d5f78bdac0d4aa951b63342fb1fa1cf",
|
||||
[]
|
||||
],
|
||||
"form_submit_about_frame.html": [
|
||||
"7beb90f1ab7bce0b162050180c4a44380940aed8",
|
||||
[]
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The <font> element should support a comma separated list of font family names</title>
|
||||
<link rel="author" title="Martin Robinson" href="mrobinson@igalia.com">
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
The elements below should be rendered with the Ahem font and show as a black rectangles.
|
||||
<br/>
|
||||
<span style="font-family: 'Ahem', serif;">XXXX</font>
|
||||
<br/>
|
||||
<span style="font-family: 'Ahem', serif;">XXXX</font>
|
||||
</body>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The <font> element should support a comma separated list of font family names</title>
|
||||
<link rel="author" title="Martin Robinson" href="mrobinson@igalia.com">
|
||||
<link rel="match" href="font-element-comma-separated-ref.html">
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
The elements below should be rendered with the Ahem font and show as a black rectangles.
|
||||
<br/>
|
||||
<font face="Ahem, serif">XXXX</font>
|
||||
<br/>
|
||||
<font face="'Ahem', serif">XXXX</font>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue