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

Bug #16359 Multiple selectors on a single rule inside a complex at rule not properly parsed
Submitted: 2009-06-21 19:36 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:36 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ If you have multiple selectors inside a complex rule they are not properly parsed, nor properly converted back to css. Test script: --------------- $a = new HTML_CSS(null, null); $a->parseString(" @media screen { body, p { font-size: 12pt } } ", true); print_r($a->_css); print_r($a->toString()); Expected result: ---------------- @media screen { body, p { font-size: 12pt } } One would also in the _css expect body and p to be groups like int is for regular rules in the css. Actual result: -------------- @media screen { body { font-size: 12pt; } } { p { font-size: 12pt; } }

Comments

 [2009-06-21 19:44 UTC] torerikh (Tor-Erik Hagen)
-Summary: Multiple selectors inside a complex at rule not properly parsed +Summary: Multiple selectors on a single rule inside a complex at rule not properly parsed
 [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.