[webkit-changes] [WebKit/WebKit] 2c98f6: Remove `-webkit-alt` and `alt` CSS properties
Tim Nguyen
noreply at github.com
Sat Dec 23 14:02:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2c98f65e9517702c8a8e0491579c0df170a3924f
https://github.com/WebKit/WebKit/commit/2c98f65e9517702c8a8e0491579c0df170a3924f
Author: Tim Nguyen <ntim at apple.com>
Date: 2023-12-23 (Sat, 23 Dec 2023)
Changed paths:
M LayoutTests/accessibility/mac/alt-for-css-content-expected.txt
M LayoutTests/accessibility/mac/alt-for-css-content.html
R LayoutTests/accessibility/mac/webkit-alt-for-css-content.html
R LayoutTests/fast/css/alt-inherit-initial.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt
M LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt
M LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
M Source/WebCore/animation/CSSPropertyAnimation.cpp
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/ComputedStyleExtractor.cpp
M Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
M Source/WebCore/css/parser/CSSPropertyParserHelpers.h
M Source/WebCore/rendering/style/RenderStyle.h
M Source/WebCore/rendering/style/RenderStyleInlines.h
M Source/WebCore/style/StyleBuilderCustom.h
Log Message:
-----------
Remove `-webkit-alt` and `alt` CSS properties
https://bugs.webkit.org/show_bug.cgi?id=266817
rdar://120051066
Reviewed by Aditya Keerthi.
With the new `content` syntax from 272455 at main implemented, we can now remove the old `-webkit-alt` and `alt` properties that serve the same purpose.
No other browser currently supports those properties and we want to prioritize new syntax over the old one.
We keep the RenderStyle setter, since it's used by the new alt text syntax for content. Also adapt a test to use the new syntax.
* LayoutTests/accessibility/mac/alt-for-css-content-expected.txt:
* LayoutTests/accessibility/mac/alt-for-css-content.html:
* LayoutTests/accessibility/mac/webkit-alt-for-css-content.html: Removed.
* LayoutTests/fast/css/alt-inherit-initial.html: Removed.
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
(WebCore::altTextToCSSValue): Deleted.
* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeAlt): Deleted.
* Source/WebCore/css/parser/CSSPropertyParserHelpers.h:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
(WebCore::RenderStyle::initialContentAltText): Deleted.
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyValueAlt): Deleted.
Canonical link: https://commits.webkit.org/272480@main
More information about the webkit-changes
mailing list