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

Bug #16358 Multiple media types on media at rule not parsed correctly
Submitted: 2009-06-21 19:25 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 3 + 18 = ?

 
 [2009-06-21 19:25 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ If multiple media types is specified on @media rule, it is not parsed correctly. Test script: --------------- $a = new HTML_CSS(null, null); $a->parseString(" @media screen, tv, presentation { body { font-size: 12pt } } ", true); print_r($a->_css); Expected result: ---------------- I'd expect all media types to be specified on the media rule, it could be looking somewhat like it does for groups on regular selectors. Actual result: -------------- Array ( [@media] => Array ( [screen,] => Array ( [body] => Array ( [font-size] => 12pt ) ) ) ) Only the first media type followed by a comma is returned

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.