Bug 44857 - @charset rule after @import rule hides the next rule
Summary: @charset rule after @import rule hides the next rule
Status: RESOLVED DUPLICATE of bug 36515
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 01:38 PDT by Xianzhu Wang
Modified: 2010-08-30 10:18 PDT (History)
1 user (show)

See Also:


Attachments
Test case: the html file (294 bytes, text/html)
2010-08-30 01:38 PDT, Xianzhu Wang
no flags Details
Test case: the css file (111 bytes, text/css)
2010-08-30 01:39 PDT, Xianzhu Wang
no flags Details
Updated html file that can open the attached css file, so that you can test directly. (346 bytes, text/html)
2010-08-30 01:42 PDT, Xianzhu Wang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xianzhu Wang 2010-08-30 01:38:20 PDT
Created attachment 65888 [details]
Test case: the html file

In the attached test case, the html file references an external css file (testrule.css). In the css file, an @charset rule is improperly placed after an @import rule, and two valid rules after the @charset rule. Because the @charset rule is improperly placed, it should be ignored.

Expected: The valid rule after the @charset rule should be respected. (it should set the font size to 12px.)
Actual: The valid rule after the @charset rule is erroneously ignored.

Browsers tested:
IE 7/8: OK
Firefox: OK
Comment 1 Xianzhu Wang 2010-08-30 01:39:10 PDT
Created attachment 65889 [details]
Test case: the css file
Comment 2 Xianzhu Wang 2010-08-30 01:42:34 PDT
Created attachment 65890 [details]
Updated html file that can open the attached css file, so that you can test directly.
Comment 3 Alexey Proskuryakov 2010-08-30 10:18:34 PDT

*** This bug has been marked as a duplicate of bug 36515 ***