WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149185
CSS parser unable to recover after invalid @media block
https://bugs.webkit.org/show_bug.cgi?id=149185
Summary
CSS parser unable to recover after invalid @media block
Derk-Jan Hartman
Reported
2015-09-15 14:53:39 PDT
Created
attachment 261241
[details]
Reduced testcase The attached testcase shows that after an invalid media query block inside <style>, the CSS parser is unable to recover and ignores anything and everything that will follow the invalid block. Browsers like Chrome and Firefox, ignore the first statement after the invalid media query block (which in the testcase would have made the div blue), but then do apply any following statements (in the testcase making the div green). This caused a serious CSS styling issue on Wikimedia Commons, where a good percentage of CSS statements was ignored by Safari. Downstream report in Wikipedia:
https://phabricator.wikimedia.org/T112552#1643002
Attachments
Reduced testcase
(227 bytes, text/html)
2015-09-15 14:53 PDT
,
Derk-Jan Hartman
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Derk-Jan Hartman
Comment 1
2020-10-29 06:08:25 PDT
Seems this is fixed somewhere between Safari 9 and Safari 14.
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