Skip to content

custom-properties : fix how preserve false interacts with duplicate code #662

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

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

romainmenke
Copy link
Member

No description provided.

@@ -112,12 +112,10 @@

.ignores-declarations-that-have-an-exact-fallback-a {
left: 1rem;
left: var(--does-not-exist, 1rem);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can not preserve var() because left: 1rem; will never be used by browsers that understand var();

Because we strip the :root of all custom props we also have to remove these.

@romainmenke romainmenke changed the title custom-properties : add failing test for #661 custom-properties : fix how preserve false interacts with duplicate code Oct 20, 2022
Copy link
Member

@Antonio-Laguna Antonio-Laguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romainmenke this looks good to me, let's get this out!

@romainmenke romainmenke force-pushed the fix-661--sensible-moose-a2db268650 branch from c7f0c35 to 0dfaed5 Compare October 20, 2022 16:19
@romainmenke romainmenke merged commit 8f02909 into main Oct 20, 2022
@romainmenke romainmenke deleted the fix-661--sensible-moose-a2db268650 branch October 20, 2022 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants