-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
Stop appending px
to everything except a blocklist?
#2795
Comments
I'd be interested to see how big the whitelist would be, but I like the idea. |
Yeah, i guess that is the key, what list would be bigger.
The same argument could be applied to the whitelist too :/ |
Not exactly the same as:
|
Sounds reasonable, although, i don't think we had a lot of issues with that list, there isn't a lot of those properties, burden that we have to update it once in a while. So i think whitelist strategy would be easier for the user to fix, as you said, but there should be a lot of widely used items in it, otherwise if not, it might confuse a lot of people.
I suppose that is a different topic |
Bottom line for me - i agree on the whitelist sounding more cool but only if it would be sufficient enough that it wouldn't cause the confusion and wouldn't affect the size too much. |
The decision if we want to drop it is a separate topic but for me it's slightly related because if you treat this as a mis-feature, you start thinking about it in terms of how can we restrict it while not breaking 90% of the code. If you think of it as about a nice feature, you might want to have the list comprehensive. My first approximation would be to take Because it sounds like a little experiment, though, we might want to wait with that for the first 4.0.0 alpha so it'll take a while. Thoughts? |
This is similar to the browser strategy as well (e.g., note that But there may be a way for us to eat our cake and have it too: we could set and immediately read back inbound CSS numbers on the That said, I do feel like this is a misfeature, and would be open to cutting it off. |
I also like the idea of eliminating the blacklist for Methods such as |
Next step is to see a PR, but this will probably be 4.0. |
px
to everything except a blacklist?px
to everything except a blocklist?
We're currently appending
px
when using the.css()
setter if the value given is numeric and the CSS property is not on thejQuery.cssNumber
list.From #2793 (comment):
The text was updated successfully, but these errors were encountered: