Previously, @media (width:500px) would be successfully parsed, but not @media(width:500px) - it would result in @media(width:500px) as a single token, effectively ignoring the media:500px media-feature and assigning all the rules in that media query to the :all namespace.
This tokenizes ( and ) separately ... which naively seems ok to me and passes all the tests, but I'd confess to being a little nervous how it behaves with real-world CSS.
Previously,
@media (width:500px)
would be successfully parsed, but not@media(width:500px)
- it would result in@media(width:500px)
as a single token, effectively ignoring themedia:500px
media-feature and assigning all the rules in that media query to the:all
namespace.This tokenizes
(
and)
separately ... which naively seems ok to me and passes all the tests, but I'd confess to being a little nervous how it behaves with real-world CSS.Fixes #139
Pre-Merge Checklist