зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
99b0686d3d
Коммит
efddb23ccc
|
@ -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: {} },
|
||||
|
|
Загрузка…
Ссылка в новой задаче