-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy strictMath flag in temporary env for mixin definitions
Fixes an unreleased regression from fe66a9a (If4a0a7ce05), which broke the elliptical corner feature of CSS border-radius, which includes a literal slash (not meant as math). https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius The upstream handles creating new environment by calling context.Eval() which calls copyFromOriginal() function. This function preserves set of properties, including `strictMath` param. Whe we initialize the temporary env, we should preserve at least the `strictMath`, the best approach is to utilize the copyEvalEnv() method from Environment that would create a copy of Environemnt with preserved `strictMath` param. The upstream tests run with `{strictMath: true}`, therefore we should run tests in the same way. This allows us to remove some overrides. Bug: T362343 Change-Id: I1b2ec0ae206a49bf4fdf01f2acd47534343f3ba1
- Loading branch information
1 parent
6edad32
commit 9c38475
Showing
7 changed files
with
24 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters