Skip to content
New issue

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

Use non static auto-import-media-spec #58

Open
hrj opened this issue May 26, 2016 · 0 comments
Open

Use non static auto-import-media-spec #58

hrj opened this issue May 26, 2016 · 0 comments

Comments

@hrj
Copy link
Contributor

hrj commented May 26, 2016

The CSS parser uses the static CSSParser.getAutoImporMedia() to decide when to follow import rules.

This is not ideal, because we can't process CSS from different contexts simultaneously (say different tabs having different dimensions).

It would be nicer if the auto-import spec can be specified as an argument to the parse method, or an instance variable of the CSSParser.

Thanks,
HRJ

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

No branches or pull requests

1 participant