Bug 154851 - All rules after malformed @keyframes in stylesheet is ignored
Summary: All rules after malformed @keyframes in stylesheet is ignored
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 01:35 PST by Tomas
Modified: 2017-03-29 07:31 PDT (History)
3 users (show)

See Also:


Attachments
Keyframes (236 bytes, text/html)
2016-03-01 01:35 PST, Tomas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas 2016-03-01 01:35:18 PST
What steps will reproduce the problem?
Open attachment document in Webkit

What is the expected result?
First line should have white text on gray background.
Second line should have gray text.

What happens instead?
Two lines of text have gray text color

There's mistyped @keyframes rule and it should be ignored. All rules after this @keyframes rule are ignored.
It looks like a bug, because in other browsers (Firefox, Chrome) it works as expected.
Comment 1 Tomas 2016-03-01 01:35:47 PST
Created attachment 272556 [details]
Keyframes
Comment 2 Simon Fraser (smfr) 2016-03-01 22:55:32 PST
Yeah, our error handling on keyframe parsing seems wrong.
Comment 3 Tomas 2017-03-29 01:26:01 PDT
It looks like bug has been fixed in latest production Safari 10.1 (12603.1.30.0.34)
Comment 4 Simon Fraser (smfr) 2017-03-29 07:31:54 PDT
Fix by landing the new CSS parser.