Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
text-decoration-thickness should support percentages
https://bugs.webkit.org/show_bug.cgi?id=262866 Reviewed by Tim Nguyen. This change adds support of percentage to text-decoration-thickness [1]. The text-decoration-thickness-interpolation.html is newly added to evaluate interpolation between various length types. The updated text-decoration-thickness-computed.html verifies calc() computation with em, %, and px values. And text-decoration-thickness-calc.html verifies the actual rendering. Test: imported/w3c/web-platform-tests/css/css-fonts/size-adjust-text-decoration.tentative.html imported/w3c/web-platform-tests/css/css-text-decor/animations/discrete-no-interpolation.html imported/w3c/web-platform-tests/css/css-text-decor/animations/text-decoration-thickness-interpolation.html imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-calc.html imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-fixed.html imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid.html imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.html [1] https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-thickness-percentage * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/animations/discrete-no-interpolation-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/animations/text-decoration-thickness-interpolation-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/animations/text-decoration-thickness-interpolation.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-calc-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-calc-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-calc.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-computed.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-decoration-thickness-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness-expected.txt: * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::textDecorationThicknessToCSSValue): (WebCore::ComputedStyleExtractor::valueForPropertyInStyle const): * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::initialTextDecorationThickness): * Source/WebCore/rendering/style/TextDecorationThickness.h: (WebCore::TextDecorationThickness::createWithAuto): (WebCore::TextDecorationThickness::createFromFont): (WebCore::TextDecorationThickness::createWithLength): (WebCore::TextDecorationThickness::length const): (WebCore::TextDecorationThickness::resolve const): (WebCore::TextDecorationThickness::TextDecorationThickness): (WebCore::operator<<): (WebCore::TextDecorationThickness::setLengthValue): Deleted. (WebCore::TextDecorationThickness::lengthValue const): Deleted. (): Deleted. * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::convertTextDecorationThickness): Canonical link: https://commits.webkit.org/269886@main
- Loading branch information