-
Notifications
You must be signed in to change notification settings - Fork 193
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
Logical properties missing computed values #477
Comments
Can I get your input on this one @rachelandrew ? |
yep, I'll assign it to me so I don't forget :) |
ah I can't assign things in this repo - could you do that @chrisdavidmills? I'll probably take a look tomorrow but if things show up in my issue list they are easier to find again. |
@rachelandrew cheers! I've assigned you, but I've also given you write access to this repo, so it shouldn't be a problem in the future. |
@johanholmerin @chrisdavidmills So this is still the same situation in the spec, it refers to the physical properties which I am guessing is not actually that useful in terms of what csstype is doing. |
csstype doesn't use the the value of the computed property, it only checks if it's an array and if it is then the property is considered a shorthand. Could it be set to an empty array, or do you have any other suggestion for how to differentiate longhands from shorthands? @frenic do you have an opinion on this? |
CSSType checks if We need to separate longform and shorthand properties because shorthand in CSS in JS can be problematic in some cases and vendors need to be able to exclude shorthand properties from their types. It would be preferable if this could be detected from its source (MDN) like everything else. Either thought a new |
@rachelandrew @chrisdavidmills what do you think about changing the computed property to an empty array for these values? Seems like the easiest solution. |
This is basically a follow question up to a comment in #319: some logical shorthands miss a computed property, because at the time it wasn't clear what those would be. My question is, is this something that can/should be fixed?
The reason I'm wondering is because csstype uses the computed property as an indicator for shorthands, which causes an issue here.
List of shorthands with missing computed list:
The text was updated successfully, but these errors were encountered: