mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00

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