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

Request #16356 Order of items in css file not keept for at rules
Submitted: 2009-06-21 17:48 UTC
From: torerikh Assigned:
Status: Open Package: HTML_CSS (version 1.5.3)
PHP Version: 5.2.4 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2009-06-21 17:48 UTC] torerikh (Tor-Erik Hagen)
Description: ------------ Currently the order of the elements in the css file is not always keept in the parsed result. Given the following css: h4 {color: blue } @media print { body { font-size: 10pt } } h3 {color: blue } @import "foo.css"; h2 {color: blue } @media screen { body { font-size: 10pt } } h1 {color: blue } It is reported as @import h4 @media print @media screen h3 h2 h1 if you investigate the _css. This is unfortunate as it makes it impossible to properly interpretate the CSS according to the CSS spec as order is important as some of the at rules should be ignored as they come too late in the css and the current parse result makes it impossible to handle such rules. Expected result: ---------------- @import h4 @media print @media screen h3 h2 h1 Actual result: -------------- h4 @media print h3 @import h2 @media screen h1

Comments