[mathml] Fix logic errors in linethickness interpretation
The linethickness property should be parsed as length-percentage [1, 2], so add a method to CSSParser to parse length-percentage. Negative values are allowed as length-percentage but are clamped to zero by the FractionLineThickness method. Finally, for now we do not accept calc() expressions. [1] https://mathml-refresh.github.io/mathml-core/#dfn-linethickness [2] https://mathml-refresh.github.io/mathml-core/#dfn-length-percentage Bug: 6606 Change-Id: I621d17d6e69cc113016fe1c809f55776c7e357d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098728Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Mason Freed <masonfreed@chromium.org> Reviewed-by:
Frédéric Wang <fwang@igalia.com> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#754546}
Showing
Please register or sign in to comment