forked from mirrors/gecko-dev
Bug 650372 - Fix legacy tests to account for keywords now being accepted. r=emilio
Depends on D154238 Differential Revision: https://phabricator.services.mozilla.com/D154278
This commit is contained in:
parent
13890ac701
commit
04966a38fd
2 changed files with 4 additions and 2 deletions
|
|
@ -95,9 +95,9 @@ var gCSSFontFaceDescriptors = {
|
|||
"local('Times New Roman')",
|
||||
'local("Times New Roman")',
|
||||
'local("serif")',
|
||||
"url(404.ttf) format(truetype)",
|
||||
],
|
||||
invalid_values: [
|
||||
"url(404.ttf) format(truetype)",
|
||||
'url(404.ttf) format("truetype" "opentype")',
|
||||
'url(404.ttf) format("truetype",)',
|
||||
'local("Times New" Roman)',
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ function runTest() {
|
|||
{ rule: _("src: local(\"老鼠\"), url(\"/fonts/Mouse\") format(\"truetype\");"),
|
||||
d: { "src" : "local(\"老鼠\"), url(\"/fonts/Mouse\") format(\"truetype\")" } },
|
||||
|
||||
{ rule: _("src: url(\"/fonts/Mouse\") format(truetype);"),
|
||||
d: { "src" : "url(\"/fonts/Mouse\") format(truetype)" } },
|
||||
|
||||
// Correct but unusual src:
|
||||
{ rule: _("src: local(Hoefler Text);"),
|
||||
d: {"src" : "local(Hoefler Text)"}, noncanonical: true },
|
||||
|
|
@ -125,7 +128,6 @@ function runTest() {
|
|||
{ rule: _("src:"), d: {} },
|
||||
{ rule: _("src: \"/fonts/Mouse\";"), d: {} },
|
||||
{ rule: _("src: /fonts/Mouse;"), d: {} },
|
||||
{ rule: _("src: url(\"/fonts/Mouse\") format(truetype);"), d: {} },
|
||||
{ rule: _("src: url(\"/fonts/Mouse\") format(\"truetype\",opentype);"), d: {} },
|
||||
{ rule: _("src: local(*);"), d: {} },
|
||||
{ rule: _("src: format(\"truetype\");"), d: {} },
|
||||
|
|
|
|||
Loading…
Reference in a new issue