Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CSS comparison functions min/max
This patch implements the CSSComparison functions min/max following spec: https://drafts.csswg.org/css-values-4/#comp-func 1. New CSSMathOperator types and a new CSSMathExpressionNode subclass are added, so that CSSMathFunctionValue can represent an expression that involves min() and max() 2. Parser support for min() and max() are added 3. Conversions between CSSMathFunctionValue and CalculationValue are augmented to support comparisons A minimal test suite is also added to verify reachability of the newly added code. The following will be finished by future patches: - Bridging comparison functions with CSS typed OM objects - Supporting comparison functions in the 'sizes' attribute - Adding a comprehensive wpt test suite for comparison functions Bug: 825895 Change-Id: I5bbf09b62818f733573f6d38837c68e555fcae59 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1744799 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#687414}
- Loading branch information