FontFace constructor throws an exception when there is a name which starts with a...
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2019 02:26:47 +0000 (02:26 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2019 02:26:47 +0000 (02:26 +0000)
commit0db6a38ae918a7abb5dafbf0d87bffcf3c86ab0a
treef6951c713062e42d3109e8fc46956fa480be6a72
parentd401dd07c475b359c6617eeaa6890094cffe7ad4
FontFace constructor throws an exception when there is a name which starts with a number
https://bugs.webkit.org/show_bug.cgi?id=196232
<rdar://problem/49293978>

Reviewed by Ryosuke Niwa.

Source/WebCore:

We were technically following the spec, but Chrome and Firefox are both consistent and it was making a website break.
This is just a short-term fix until the underlying https://bugs.webkit.org/show_bug.cgi?id=196381 is fixed.

Test: fast/text/font-face-family.html

* css/FontFace.cpp:
(WebCore::FontFace::setFamily):

LayoutTests:

* fast/text/font-face-family-expected.txt: Added.
* fast/text/font-face-family.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-face-family-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/font-face-family.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/FontFace.cpp
Source/WebCore/css/parser/CSSPropertyParser.cpp