Closed
Description
Following document throws Sabberworm\CSS\Parsing\UnexpectedTokenException
with message Identifier expected. Got “+ 20p”
. This is expected to be valid CSS document:
body
{
border-top: solid green 0em;
border-top-width: calc(1em + 20px);
}
The parser is initialized like this:
$settings = Sabberworm\CSS\Settings::create();
$settings->beStrict();
$parser = new Sabberworm\CSS\Parser($css, $settings);
I think Parser::parseValue()
would need to be modified but I have no idea how to fix this.