We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@media tty { i{content:"\";/*" "*/}} a { color: black; } /*";} } a {color: white}
The hack itself is handled ok - two strings in the content property
The problem is that the next ruleset is considered part of the media block, while it should be outside of it
Test code:
var mensch = require('mensch'); var css = require('fs').readFileSync('./examples/css.css').toString(); var parsed = mensch.parse(css); var res = mensch.stringify(parsed, {indentation: ' '}) console.log(res)
Result:
@media tty { i { content: "\";/*" "*/}} a { color: black; } /*"; } a { color: white; } }
The text was updated successfully, but these errors were encountered:
Source: http://www.csszengarden.com/057/
Sorry, something went wrong.
mensch currently parses "}" and "{" inside strings while they should be ignored (it currently only ignores them inside a comment).
bago
No branches or pull requests
The hack itself is handled ok - two strings in the content property
The problem is that the next ruleset is considered part of the media block, while it should be outside of it
Test code:
Result:
The text was updated successfully, but these errors were encountered: