You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, when parsing stylesheets without the space in "@ media(" the parser throws an UnexpectedTokenException.
Example:
<?php
use Sabberworm\CSS\Parser;
require '../vendor/autoload.php';
// This works:
(new Parser('@media (min-width: 768px){.class{color:red}}'))->parse();
// This throws an exception: 'Identifier expected. Got “: 768”'
(new Parser('@media(min-width: 768px){.class{color:red}}'))->parse();
The text was updated successfully, but these errors were encountered:
Unfortunately, when parsing stylesheets without the space in "@ media(" the parser throws an UnexpectedTokenException.
Example:
The text was updated successfully, but these errors were encountered: