Bug 16013 - Nested media at-rules incorrectly parsed
Summary: Nested media at-rules incorrectly parsed
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.gtalbot.org/BrowserBugsSec...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 23:33 PST by Gérard Talbot
Modified: 2009-06-13 10:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gérard Talbot 2007-11-15 23:33:31 PST
@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
Comment 1 David Kilzer (:ddkilzer) 2007-11-16 00:19:05 PST
Firefox 2.0.0.9, Firefox 3.0b2 (14-Nov-2007) and Opera 9.22 all shows the line as green.

Comment 2 Gérard Talbot 2008-03-21 09:32:56 PDT
MSIE 8 beta 1 (released on March 5th 2008) shows the line as green.
Comment 3 Gérard Talbot 2009-06-13 10:49:58 PDT
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