<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>44857</bug_id>
          
          <creation_ts>2010-08-30 01:38:20 -0700</creation_ts>
          <short_desc>@charset rule after @import rule hides the next rule</short_desc>
          <delta_ts>2010-08-30 10:18:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>36515</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Xianzhu Wang">phnixwxz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271344</commentid>
    <comment_count>0</comment_count>
      <attachid>65888</attachid>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-08-30 01:38:20 -0700</bug_when>
    <thetext>Created attachment 65888
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271345</commentid>
    <comment_count>1</comment_count>
      <attachid>65889</attachid>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-08-30 01:39:10 -0700</bug_when>
    <thetext>Created attachment 65889
Test case: the css file</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271347</commentid>
    <comment_count>2</comment_count>
      <attachid>65890</attachid>
    <who name="Xianzhu Wang">phnixwxz</who>
    <bug_when>2010-08-30 01:42:34 -0700</bug_when>
    <thetext>Created attachment 65890
Updated html file that can open the attached css file, so that you can test directly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271487</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-30 10:18:34 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 36515 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65888</attachid>
            <date>2010-08-30 01:38:20 -0700</date>
            <delta_ts>2010-08-30 01:42:34 -0700</delta_ts>
            <desc>Test case: the html file</desc>
            <filename>testrule.html</filename>
            <type>text/html</type>
            <size>294</size>
            <attacher name="Xianzhu Wang">phnixwxz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8bGluayB0eXBlPSJ0ZXh0L2NzcyIgcmVsPSJzdHlsZXNoZWV0IiBocmVm
PSJ0ZXN0cnVsZS5jc3MiPgo8L2hlYWQ+Cjxib2R5Pgo8ZGl2IGlkPSJkIj5UZXN0IFJ1bGU8L2Rp
dj4KPHNjcmlwdD4KZG9jdW1lbnQud3JpdGUoIkZvbnQgc2l6ZSBpczogIiArIGdldENvbXB1dGVk
U3R5bGUoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImQiKSwgIiIpLmdldFByb3BlcnR5VmFsdWUo
ImZvbnQtc2l6ZSIpCiAgKyAiIChzaG91bGQgYmUgMTJweCkiKTsKPC9zY3JpcHQ+CjwvYm9keT4K
PC9odG1sPgoK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65889</attachid>
            <date>2010-08-30 01:39:10 -0700</date>
            <delta_ts>2010-08-30 01:39:10 -0700</delta_ts>
            <desc>Test case: the css file</desc>
            <filename>testrule.css</filename>
            <type>text/css</type>
            <size>111</size>
            <attacher name="Xianzhu Wang">phnixwxz</attacher>
            
              <data encoding="base64">QGltcG9ydCB1cmwoc19sb2dpbi5jc3MpOw0KQGNoYXJzZXQgInV0Zi04IjsNCg0KYm9keXtmb250
LXNpemU6MTJweDsgYmFja2dyb3VuZDp5ZWxsb3d9DQpkaXZ7YmFja2dyb3VuZDpyZWQ7fQ0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65890</attachid>
            <date>2010-08-30 01:42:34 -0700</date>
            <delta_ts>2010-08-30 01:42:34 -0700</delta_ts>
            <desc>Updated html file that can open the attached css file, so that you can test directly.</desc>
            <filename>testrule1.html</filename>
            <type>text/html</type>
            <size>346</size>
            <attacher name="Xianzhu Wang">phnixwxz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8bGluayB0eXBlPSJ0ZXh0L2NzcyIgcmVsPSJzdHlsZXNoZWV0IiBocmVm
PSJodHRwczovL2J1Zy00NDg1Ny1hdHRhY2htZW50cy53ZWJraXQub3JnL2F0dGFjaG1lbnQuY2dp
P2lkPTY1ODg5Ij4KPC9oZWFkPgo8Ym9keT4KPGRpdiBpZD0iZCI+VGVzdCBSdWxlPC9kaXY+Cjxz
Y3JpcHQ+CmRvY3VtZW50LndyaXRlKCJGb250IHNpemUgaXM6ICIgKyBnZXRDb21wdXRlZFN0eWxl
KGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkIiksICIiKS5nZXRQcm9wZXJ0eVZhbHVlKCJmb250
LXNpemUiKQogICsgIiAoc2hvdWxkIGJlIDEycHgpIik7Cjwvc2NyaXB0Pgo8L2JvZHk+CjwvaHRt
bD4KCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>