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-typed-om] CSSRotation/Skew can be constructed with doubles, but not CSSTranslation/Perspective #272
Comments
No, only zero lengths can be unitless. Angles, unfortunately (because of people implementing badly before the spec was even written), support unitless degrees in several spots, including rotate(). :/ |
We should take the opportunity to provide consistency here. It sounds like you would lean towards correctness (i.e. no unitless degrees either). An argument can also be made for convenience: Overall I think I probably value correctness more too. Anyone else have any thoughts? |
Discussed this with @fantasai - we shouldn't be allowing unitless angles either. That's a back-compat issue for the CSS literal syntax because Safari engineers are terrible at designing CSS syntax; we have no such restrictions in Houdini, and can make sure we do things consistently and correctly instead. |
So shall I pull it out? |
I'd prefer it, but want to verify with @shans |
It's always easier to add stuff later than remove. Let's pull out all unitless constructors for now. |
SGTM |
@rjwright want to submit a PR for this? |
Will do |
Since we allow constructing transform components with double angles in deg, should we also allow constructing transform components with double lengths in px? Alternatively disallow both.
The text was updated successfully, but these errors were encountered: