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

CSS Selector restrictions: why? #480

Closed
bryanburgers opened this issue Oct 7, 2015 · 2 comments
Closed

CSS Selector restrictions: why? #480

bryanburgers opened this issue Oct 7, 2015 · 2 comments

Comments

@bryanburgers
Copy link

Why are the CSS Selector restrictions so tight? I was under the understanding that CSS Selector Performance is largely irrelevant.

If there is a reason to restrict the CSS Selectors so tightly, can it be documented somewhere?

http://calendar.perfplanet.com/2011/css-selector-performance-has-changed-for-the-better/
http://benfrain.com/css-performance-revisited-selectors-bloat-expensive-styles/
http://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors/

@cramforce
Copy link
Member

We might relax this a bit. Need a good corpus of docs to see. It is definitely is not irrelevant. Style recalc is O(number of DOM nodes * number of rules * their complexity)

@cramforce
Copy link
Member

Removed most restrictions

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

No branches or pull requests

3 participants