Update web-platform-tests to revision b'2d7c53f5bc604132d2c83955537e454ee9c788c0'

This commit is contained in:
WPT Sync Bot 2023-01-18 01:45:07 +00:00
parent 619a46113f
commit 1c6b303ef2
396 changed files with 29611 additions and 1967 deletions

View file

@ -13,6 +13,12 @@
{ src: 'url("foo.ttf"), url("bar.ttf")', valid: true },
// Empty format() is not valid
{ src: 'url("foo.ttf") format()', valid: false },
// Garbage data instead of format() is not valid
{ src: 'url("foo.ttf") dummy()', valid: false },
// Garbage data following valid format() is not valid
{ src: 'url("foo.ttf") format("woff") dummy()', valid: false },
// Garbage data preceding valid format() is not valid
{ src: 'url("foo.ttf") dummy() format("woff")', valid: false },
// Quoted strings in format()
{ src: 'url("foo.ttf") format("collection")', valid: true },
{ src: 'url("foo.ttf") format("opentype")', valid: true },

View file

@ -8,6 +8,10 @@
<script>
const sheet = testStyle.sheet;
tests = [
// Gargbage data following valid local() is not valid
{ src:'local(A) dummy()', valid:false},
// Gargbage data preceding valid local() is not valid
{ src:'dummy() local(A)', valid:false},
// Unquoted collapsing space
{ src:'local( A )', valid:true },
{ src:'local(A B)', valid:true },