mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00

The regressing bug regressed some calc() expressions like the one in the test-case: max-width: calc(100% - <some-fixed-length>); Where floating point precision basically made us lose a little bit of precision here and there. Before bug 1841612, this worked because we'd operate in fixed point for such simple expressions at least. Things could easily go equally south for more complex things including e.g. rem(). Rounding seems like the better default for calc() since we basically have no idea of what the output is going to be, and makes the answer more likely to be precise. Note that this only affects actual mixed calc() expressions: If things resolve to a percentage we keep existing behavior. Differential Revision: https://phabricator.services.mozilla.com/D202746