Animations: scale() syntax does not support only one argument #2834
Labels
bug
ready for test
TSC needs to test this and confirm against live production apps and automated test suites
Milestone
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes, I couldn’t find anything.
Tell us about the problem
Straight to the point—when writing CSS animation code in NativeScript...
This syntax works:
transform: scale(1, 1)
This syntax doesn’t:
transorm: scale(1)
The web supports providing a single value to
scale()
(see https://developer.mozilla.org/en-US/docs/Web/CSS/transform), so I think we should too. More specifically, our parser should seescale(1)
and handle it likescale(1, 1)
.Which platform(s) does your issue occur on?
Both
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Replace
app/app.component.ts
with the following code:Run the app and note how the button does not scale when you tap the button. Now replace
scale(1)
withscale(1, 1)
, andscale(2)
withscale(2, 2)
and note how the button scales as intended.Thanks.
The text was updated successfully, but these errors were encountered: