forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1855110: Part 2 - Track and mark dependency cycles between custom…
… properties and font-related properties. r=firefox-style-system-reviewers,emilio Registered custom properties may utilize font-relative units such as `em`, `ex`, etc. Font-related properties (More with `calc()` unit algebra), in turn, may refer to such registered custom properties, leading to a cycle (Note, unregistered properties are effectively copy-pastes, so it does not suffer from this issue). This patch: 1. Defers computation of registstered custom properties using font-relative units 2. Keeps track of custom properties utilizing font-relative units 3. Keeps track of non-custom, font-related properties making variable references 4. Expands the cycle detection to non-custom properties Because of 1, this patch causes registered custom property using font-relative units to resolve as if they're unregistered - this will be addressed in the next patch. Differential Revision: https://phabricator.services.mozilla.com/D196194
- Loading branch information
Showing
10 changed files
with
546 additions
and
176 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 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 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
47 changes: 4 additions & 43 deletions
47
testing/web-platform/meta/css/css-properties-values-api/unit-cycles.html.ini
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,12 @@ | ||
[unit-cycles.html] | ||
[Lengths with em units may not be referenced from font-size] | ||
[Inherited lengths with em units may be used] | ||
expected: FAIL | ||
|
||
[Lengths with ex units may not be referenced from font-size] | ||
[Inherited lengths with ex units may be used] | ||
expected: FAIL | ||
|
||
[Lengths with ch units may not be referenced from font-size] | ||
[Inherited lengths with ch units may be used] | ||
expected: FAIL | ||
|
||
[Lengths with lh units may not be referenced from font-size] | ||
expected: FAIL | ||
|
||
[Lengths with rem units may not be referenced from font-size on root element] | ||
expected: FAIL | ||
|
||
[Lengths with lh units may not be referenced from line-height] | ||
expected: FAIL | ||
|
||
[Fallback may not use font-relative units] | ||
expected: FAIL | ||
|
||
[Fallback may not use line-height-relative units] | ||
expected: FAIL | ||
|
||
[Fallback not triggered while inside em unit cycle] | ||
expected: FAIL | ||
|
||
[Fallback not triggered while inside ch unit cycle] | ||
expected: FAIL | ||
|
||
[Fallback not triggered while inside rem unit cycle on root element] | ||
expected: FAIL | ||
|
||
[Fallback not triggered while inside lh unit cycle] | ||
expected: FAIL | ||
|
||
[Lengths with em units are detected via var references] | ||
expected: FAIL | ||
|
||
[Lengths with ex units are detected via var references] | ||
expected: FAIL | ||
|
||
[Lengths with ch units are detected via var references] | ||
expected: FAIL | ||
|
||
[Lengths with rem units are detected via var references] | ||
expected: FAIL | ||
|
||
[Lengths with lh units are detected via var references] | ||
[Inherited lengths with lh units may be used] | ||
expected: FAIL |
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