Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bb6d1b4a1f91239eed5808209db60ab7cd4081d9
https://github.com/WebKit/WebKit/commit/bb6d1b4a1f91239eed5808209db60ab7cd4081d9
Author: Anne van Kesteren <[email protected]>
Date: 2026-07-10 (Fri, 10 Jul 2026)
Changed paths:
M LayoutTests/TestExpectations
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-headingoffset-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-headingoffset.html
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-slot-reassignment-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-slot-reassignment.html
M
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/w3c-import.log
M
LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https_include=HTML._-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-and-headingreset-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-and-headingreset.html
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-mutations-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-mutations.html
R
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headings-and-sections/contains.json
R
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/headings-and-sections/w3c-import.log
A
LayoutTests/imported/w3c/web-platform-tests/html/semantics/sections/w3c-import.log
M
LayoutTests/platform/glib/imported/w3c/web-platform-tests/html/dom/idlharness.https_include=HTML._-expected.txt
M
LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/dom/idlharness.https_include=HTML._-expected.txt
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/accessibility/AXCoreObject.cpp
M Source/WebCore/accessibility/AXCoreObject.h
M Source/WebCore/accessibility/AXLogger.cpp
M Source/WebCore/accessibility/AXNotifications.h
M Source/WebCore/accessibility/AXObjectCache.cpp
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/accessibility/AccessibilityObject.h
M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp
M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.h
M Source/WebCore/cssjit/SelectorCompiler.cpp
M Source/WebCore/dom/Document.h
M Source/WebCore/html/HTMLAttributeNames.in
M Source/WebCore/html/HTMLElement.cpp
M Source/WebCore/html/HTMLElement.idl
M Source/WebCore/html/HTMLHeadingElement.cpp
M Source/WebCore/html/HTMLHeadingElement.h
M Source/WebCore/style/RuleSet.cpp
Log Message:
-----------
Implement headingoffset & headingreset attributes
https://bugs.webkit.org/show_bug.cgi?id=295092
rdar://155028047
Reviewed by Tim Nguyen.
They are implemented behind the HeadingOffsetEnabled feature flag
(preview). The complexity of the feature lies in correctly invalidating
the :heading pseudo-class.
Tests:
imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-headingoffset.html
imported/w3c/web-platform-tests/css/selectors/invalidation/heading-pseudo-class-in-has-with-slot-reassignment.html
imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-and-headingreset.html
imported/w3c/web-platform-tests/html/semantics/sections/headingoffset-mutations.html
This includes a fix for a recent (and hopefully last) change for this
feature:
https://github.com/whatwg/html/pull/12562
https://github.com/web-platform-tests/wpt/pull/60525
Canonical link: https://commits.webkit.org/316885@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications