WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
89980
Unexpected end of style sheet in @font-face rule discards it rather than closes all open constructs
https://bugs.webkit.org/show_bug.cgi?id=89980
Summary
Unexpected end of style sheet in @font-face rule discards it rather than clos...
Alexander Pavlov (apavlov)
Reported
2012-06-26 07:36:05 PDT
Currently, the first font_face alternative explicitly consumes a '}' and maybe_space following it. This entirely agrees with
http://www.w3.org/TR/1998/REC-CSS2-19980512/grammar.html
but not with
http://www.w3.org/TR/CSS21/syndata.html#parsing-errors
, the "Unexpected end of style sheet." item, which says the following: "User agents must close all open constructs (for example: blocks, parentheses, brackets, rules, strings, and comments) at the end of the style sheet. For example: @media screen { p:before { content: 'Hello would be treated the same as: @media screen { p:before { content: 'Hello'; } } in a conformant UA." All other block_valid_rule's use either save_block or closing_brace, so an unexpected end of style sheet works fine for them - but not for @font-face.
Attachments
Patch
(4.03 KB, patch)
2012-06-26 07:58 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-06-26 07:58:48 PDT
Created
attachment 149532
[details]
Patch
WebKit Review Bot
Comment 2
2012-06-27 04:35:23 PDT
Comment on
attachment 149532
[details]
Patch Clearing flags on attachment: 149532 Committed
r121337
: <
http://trac.webkit.org/changeset/121337
>
WebKit Review Bot
Comment 3
2012-06-27 04:35:43 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug