-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(style): add support for origen-x and origen-y CSS properties #10760
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
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
“Removed duplicate origenX/Y declarations and repositioned END comment. Let me know if anything else is needed 🙌” |
I’ve now addressed your feedback: ✅ Removed the legacy origenX and origenY property registrations from ViewCommon ✅ Removed the public property declarations from the class ✅ Moved the //END Style property shortcuts comment below the new origenX and origenY declarations in index.d.ts Let me know if anything else looks off or if further changes are needed . |
View your CI Pipeline Execution ↗ for commit 4361cea
☁️ Nx Cloud last updated this comment at |
Thanks for taking care of those! I took a better look at the open issue and it seems to actually be about implementing css
|
|
Thanks @shridmishra for the PR, I do have a concern with the changes, that I would like to bring up with @NathanWalker and @CatchABus: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origen |
I was thinking about the same thing but I noticed core also declares props like If safe, we should move all those to ViewCommon and keep valid css props to style as @rigor789 mentioned. |
@CatchABus good point, there are some non-spec CSS properties in core already, which we could over time deprecate (and make them into custom css properties prefixed with a |
Thanks for the feedback @rigor789 and @CatchABus 🙌 I agree that sticking closely to the CSS spec makes sense, especially for new additions. happy to refactor the PR accordingly! |
PR Checklist
What is the current behavior?
CSS properties
origen-x
andorigen-y
are not supported. Developers must useview.origenX
andview.origenY
in code-behind to set transform origens.What is the new behavior?
This PR adds CSS support for
origen-x
andorigen-y
:rotate
,scale
, etc.Notes
Fixes #5991
Happy to add unit or UI tests if requested by maintainers — just let me know 🙌