Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

css pruning fails with /deep/ and ::shadow #38

Open
har79 opened this issue Mar 31, 2016 · 0 comments
Open

css pruning fails with /deep/ and ::shadow #38

har79 opened this issue Mar 31, 2016 · 0 comments

Comments

@har79
Copy link
Contributor

har79 commented Mar 31, 2016

These selectors (including deep's alias >>>) are deprecated: https://code.google.com/p/chromium/issues/detail?id=489954
however there isn't a replacement yet and there are still discussions what form that will take so they'll likely be around for quite a while.

The bug appears to be in csslib; errors are of the form:
"error on line 33, column 17 of foo.css: expected {, but found /
foo /deep/ #bar {"
Message comes from https://github.com/dart-lang/csslib/blob/master/lib/parser.dart#L307
and forwarded by SCiSSors: https://github.com/google/dart-scissors/blob/master/lib/src/css_pruning/css_pruning.dart#L121

I've filed an issue with csslib (https://github.com/dart-lang/csslib/issues/23) and will work on a patch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant