FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16358&edit=1

ID: 16358
Updated by: pear@laurent-laville.org
Reported By: tor-erik at web-amp dot com
Summary: Multiple media types on media at rule not parsed
correctly
-Status: Open
+Status: Verified
Type: Bug
Package: HTML_CSS
Operating System: Ubuntu
Package Version: 1.5.3
PHP Version: 5.2.4
Roadmap Versions:
New Comment:

-Status: Open
+Status: Verified



Previous Comments:
------------------------------------------------------------------------

[2009-06-21 15:25:57] torerikh

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 21, '09 at 5:58p
activeJun 21, '09 at 5:58p
posts1
users1
websitepear.php.net

1 user in discussion

Pear: 1 post

People

Translate

site design / logo © 2022 Grokbase