Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.4

Bug #16355 Simple at rules nested within other at rules are reported as top level at rules
Submitted: 2009-06-21 17:39 UTC
From: torerikh Assigned: farell
Status: Closed Package: HTML_CSS (version 1.5.3)
PHP Version: 5.2.4 OS: Ubuntu
Roadmaps: 1.5.4    
Subscription  


 [2009-06-21 17:39 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ Given the following CSS (not 100% valid, but should still not cause corrupt parse results): @media screen { @import "screen-main.css"; body { font-size: 10pt } } the import at rule is incorrectly reported as beeing a top level import and not ignored or reported as beeing inside the media at rule. Test script: --------------- $a = new HTML_CSS(null, null); $a->parseString(" @media screen { @import \"screen-main.css\"; body { font-size: 10pt } } "); print_r($a->_css); Expected result: ---------------- The import at rule should either be ignored or reported inside the media at rule. Actual result: -------------- The import rule is reported as a top level rule independently of the media element.

Comments

 [2009-06-21 23:55 UTC] farell (Laurent Laville)
-Status: Open +Status: Verified
 [2009-07-03 02:42 UTC] farell (Laurent Laville)
-Status: Verified +Status: Closed -Assigned To: +Assigned To: farell
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.