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

Bug #16360 Multiple selectors inside a complex at rule not properly parsed
Submitted: 2009-06-21 19:49 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 19:49 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ If you define multiple selectors as separate rules inside a complex at rule, it is not properly parsed or regenerated as css. Test script: --------------- $a = new HTML_CSS(null, null); $a->parseString(" @media screen { body{ font-size: 12pt } p { font-size: 12pt } } ", true); print_r($a->_css); print_r($a->toString()); Expected result: ---------------- @media screen { body{ font-size: 12pt } p { font-size: 12pt } } Actual result: -------------- @media screen { body{ font-size: 12pt } } p { font-size: 12pt } The p selector is not keept within the media at rule

Comments

 [2009-06-21 23:56 UTC] farell (Laurent Laville)
-Status: Open +Status: Verified
 [2009-07-03 02:43 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.