[Webkit-unassigned] [Bug 36515] New: CSS style definitions are ignored if they just follow a "@charset" which appears in lines other than the first line in stylesheet.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 23 19:23:35 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36515

           Summary: CSS style definitions are ignored if they just follow
                    a "@charset" which appears in lines other than the
                    first line in stylesheet.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://bbs.club.sina.com.cn/group.php?gid=26&tree=1
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hanrui.gao at gmail.com
                CC: jshin at chromium.org, jnd at chromium.org


Created an attachment (id=51474)
 --> (https://bugs.webkit.org/attachment.cgi?id=51474)
testcase 1

Browsers tested:
Safari 4.0.5(531.22.7): Fail
      Chrome 5.0.342.3: Fail
           Firefox 3.6: OK
                  IE 7: OK
                  IE 8: OK (In IE 8, it runs in IE7 Standards mode by page
default)

What steps will reproduce the problem?
1. Launch the url in each browser
2. Pay attention to the top area of the page

What is the expected result?
Chrome and Safari should better show the same UI as that in IE and Firefox.

What happens instead?
In Chrome and Safari, the page loses the '新浪论坛' icon at the top-left 
side and shows the top login area is in a different color from that in IE 
and Firefox.

Please provide any additional information below. Attach a screenshot if
possible.

Thy this page: http://bbs.club.sina.com.cn/group.php?gid=26&tree=1
In its css file(http://sjs.sinajs.cn/tiezi/css/bbs2/dev.css?38.css), there 
are more than one "charset" lines. All style definition right following the 
charset lines will be missed expect the first charset line.
Yes, this issue is caused by mis-using of "charset", but why could not we 
handle it correctly while IE and Firefox both can?
Attached please kindly find my recuded test-case.
In my first test-case, the 2nd and 3rd selectors are both ignored in Safari 
and Chrome. But they are having effect in Firefox and IE.
And in the second test-case, you will see that the first selector which 
just follows the '@charset' right in the first line take effect while the 
second selector doesn't.
Thanks!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list