<?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>16013</bug_id>
          
          <creation_ts>2007-11-15 23:33:31 -0800</creation_ts>
          <short_desc>Nested media at-rules incorrectly parsed</short_desc>
          <delta_ts>2009-06-13 10:49:58 -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>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/NestedMediaRules.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot (no longer involved)">browserbugs2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex</cc>
    
    <cc>cgriego</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61388</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2007-11-15 23:33:31 -0800</bug_when>
    <thetext>@media all
  {
  p {background-color: white; color: green;}
  @media screen
    {
    p {background-color: white; color: red;}
    }
  }

should be parsed as

  @media all
  {
  p {background-color: white; color: green;}
  }

Steps to reproduce:
----------------
Load provided URL

Expected results:
--------------
The line should be green.

Actual results in Safari 3.0.4 build 523.12.9:
-------------------------------------
The line is black.

Notes:
-----
- The W3C CSS validator will report the parsing error.
- I have not searched for a duplicate</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61393</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-16 00:19:05 -0800</bug_when>
    <thetext>Firefox 2.0.0.9, Firefox 3.0b2 (14-Nov-2007) and Opera 9.22 all shows the line as green.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74643</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2008-03-21 09:32:56 -0700</bug_when>
    <thetext>MSIE 8 beta 1 (released on March 5th 2008) shows the line as green.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125643</commentid>
    <comment_count>3</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2009-06-13 10:49:58 -0700</bug_when>
    <thetext>When I try the testcase with the latest stable release of Safari 4.0 for
Windows (build 530.17), I get expected results. So, this bug has been fixed.

I am resolving this bug as WORKSFORME since I do not know which patch fixed
this bug. Please adjust, correct the RESOLUTION field accordingly if you know
which patch fixed this bug.

Resolving as WOKRSFORME

Regards, Gérard</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>