mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Automatic update from web-platform-tests Support percentage comparison resolution against negative reference values It's a very edge case that a percentage may be resolved against a negative value, which is allowed only in 'background-position' property. To support this without massively changing existing code, this patch adds an indicator flag to |CSSMathFunctionValue|, so that when the flag is set, the resolution of calculated percentage values is delayed to when a reference value is available. When the flag is not set, we still use the existing code path where a calculated percentage value can be resolved immediately. Together with this patch is a test suite on parsing and evaluation of comparisons on percentages. Bug: 825895, 978682 Change-Id: I2a6aabd48313ccda82b50f6dc00fd62c4548bc84 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762970 Commit-Queue: Xiaocheng Hu <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Reviewed-by: Emil A Eklund <[email protected]> Cr-Commit-Position: refs/heads/master@{#689198} -- wpt-commits: 8f929221b0664b735209dd1b44594dd21d643520 wpt-pr: 18574