Skip to content

Implement <details>/<summary> disclosure triangle as a list item#34778

Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
nt1m:eng/Implement-detailssummary-disclosure-triangle-as-a-list-item
Nov 20, 2024
Merged

Implement <details>/<summary> disclosure triangle as a list item#34778
webkit-commit-queue merged 1 commit intoWebKit:mainfrom
nt1m:eng/Implement-detailssummary-disclosure-triangle-as-a-list-item

Conversation

@nt1m
Copy link
Copy Markdown
Member

@nt1m nt1m commented Oct 7, 2024

cd2f382

Implement <details>/<summary> disclosure triangle as a list item
https://bugs.webkit.org/show_bug.cgi?id=157323
rdar://95148788

Reviewed by Ryosuke Niwa.

https://html.spec.whatwg.org/#the-details-and-summary-elements

This does the following changes to match the latest HTML spec:
- Implements details/summary disclosure triangle as a list item
- Implements collapsing of summary with `content-visibility: hidden` as mandated by spec, instead of appending/deleting the default slot
- Sets `display: block` on the default slot when the details element is open for easier styling
- Adds the user-agent styles for details/summary
- Stops forcing the used display value for details/summary
- Removes DetailsMarkerControl/RenderDetailsMarker (::-webkit-details-marker) since this is now covered by the list item ::marker

As a result, the following are fixed:
- ::marker can now be used instead of ::-webkit-details-marker (bug 157323)
- Changing list-style and display is now effective on the ::marker (bug 264381)
- element.checkVisibility() now works properly on elements in the default slot (bug 264733)
- summary::before now appears in the correct order (bug 61426)
- details::before/after now appear in the correct order (bug 61766)
- and more...

* LayoutTests/TestExpectations:
* LayoutTests/accessibility/ios-simulator/aria-details-toggle-summary-expected.txt:
* LayoutTests/fast/css-grid-layout/grid-was-populated-assert-expected.txt:
* LayoutTests/fast/html/details-clone-expected.txt: Removed.
* LayoutTests/fast/html/details-clone.html: Removed.
* LayoutTests/fast/html/details-inline-expected.html: Removed.
* LayoutTests/fast/html/details-inline.html: Removed.
* LayoutTests/fast/multicol/crash-in-vertical-writing-mode-expected.txt:
* LayoutTests/fast/multicol/crash-in-vertical-writing-mode.html:
* LayoutTests/http/tests/security/cross-origin-blob-transfer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/editing/run/inserthorizontalrule-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-details-element/details-blockification-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-details-element/details-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-details-element/toggleEvent-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-summary-element/anchor-with-inline-element-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-summary-element/interactive-content-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/details-summary-before-after-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-10-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-2-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-3-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-4-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-5-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-6-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-7-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-8-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-9-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/glib/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/glib/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-position-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-2-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-3-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-4-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-5-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-6-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/glib/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/gtk/TestExpectations:
* LayoutTests/platform/gtk/fast/html/details-add-summary-10-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-7-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-8-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-9-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open2-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open4-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-remove-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/ios/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-10-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-2-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-3-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-4-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-5-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-6-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-7-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-8-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-9-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/ios/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/ios/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-position-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-2-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-3-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-4-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-5-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-6-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/ios/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/ios/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/ios/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/ios/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open2-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open4-expected.txt:
* LayoutTests/platform/mac/TestExpectations:
* LayoutTests/platform/mac/fast/css-generated-content/details-summary-before-after-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-10-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-2-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-3-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-4-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-5-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-6-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-7-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-8-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-9-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/mac/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/mac/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-position-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-2-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-3-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-4-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-5-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-6-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/mac/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/mac/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/mac/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/wpe/TestExpectations:
* LayoutTests/platform/wpe/fast/html/details-add-summary-10-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-7-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-8-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-9-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open2-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open4-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-remove-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-replace-text-expected.txt:
* LayoutTests/tables/table-col-indent-crash-expected.txt:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
* Source/WebCore/css/CSSPseudoSelectors.json:
* Source/WebCore/css/html.css:
(details, summary):
(details > summary:first-of-type):
(details[open] > summary:first-of-type):
(frameset, frame):
(frameset):
(iframe):
(details): Deleted.
(summary): Deleted.
(summary::-webkit-details-marker): Deleted.
* Source/WebCore/css/process-css-pseudo-selectors.py:
* Source/WebCore/html/HTMLDetailsElement.cpp:
(WebCore::HTMLDetailsElement::didAddUserAgentShadowRoot):
(WebCore::HTMLDetailsElement::attributeChanged):
(WebCore::HTMLDetailsElement::createElementRenderer): Deleted.
* Source/WebCore/html/HTMLDetailsElement.h:
* Source/WebCore/html/HTMLSummaryElement.cpp:
(WebCore::HTMLSummaryElement::create):
(): Deleted.
(WebCore::HTMLSummaryElement::createElementRenderer): Deleted.
(WebCore::HTMLSummaryElement::didAddUserAgentShadowRoot): Deleted.
* Source/WebCore/html/HTMLSummaryElement.h:
* Source/WebCore/html/shadow/DetailsMarkerControl.cpp: Removed.
* Source/WebCore/html/shadow/DetailsMarkerControl.h: Removed.
* Source/WebCore/html/shadow/detailsElementShadow.css: Added.
(:host summary):
(:host([open]) summary):
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp:
* Source/WebCore/rendering/RenderDetailsMarker.cpp: Removed.
* Source/WebCore/rendering/RenderDetailsMarker.h: Removed.
* Source/WebCore/rendering/RenderTreeAsText.cpp:
(WebCore::RenderTreeAsText::writeRenderObject):
* Source/WebCore/style/UserAgentStyle.cpp:
(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement):

Canonical link: https://commits.webkit.org/286869@main

a25e7d1

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ✅ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2
✅ 🛠 tv 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@nt1m nt1m requested review from cdumez and rniwa as code owners October 7, 2024 16:31
@nt1m nt1m self-assigned this Oct 7, 2024
@nt1m nt1m added the Layout and Rendering For bugs with layout and rendering of Web pages. label Oct 7, 2024
@webkit-early-warning-system

This comment was marked as outdated.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can use adoptedStyleSheets() instead of creating a new style element?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be the same though. I said as much in the specification review and the main reason the style element approach was allowed because you couldn't observe the difference. If you're setting it up programmatically I'm not entirely sure it makes sense to create the additional node.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try it, but it'll probably end up inconsistent with meter/attachment, although I guess they were created before adoptedStylesheets

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to address this but none of my attempts worked

@nt1m nt1m changed the title Implement <details>/<summary> disclosure triangle as a list item Implement <details>/<summary> disclosure triangle as a list item Oct 7, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 631905f to 0855b11 Compare October 7, 2024 17:05
@webkit-early-warning-system

This comment was marked as outdated.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 7, 2024
@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Oct 7, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 0855b11 to ecec176 Compare October 7, 2024 18:29
@webkit-early-warning-system

This comment was marked as outdated.

@nt1m nt1m added the no-failure-limits Disable layout test failure limits on a pull-request label Oct 7, 2024
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Oct 7, 2024
@webkit-ews-buildbot

This comment was marked as outdated.

1 similar comment
@webkit-ews-buildbot

This comment was marked as outdated.

@rniwa
Copy link
Copy Markdown
Member

rniwa commented Oct 8, 2024

@rniwa
Copy link
Copy Markdown
Member

rniwa commented Oct 8, 2024

We can probably just inline TextTrack::invalidateTrackIndex into the header file and that should fix it.

@TKDev7
Copy link
Copy Markdown

TKDev7 commented Oct 8, 2024

Thank you @nt1m 🙏!

@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Nov 18, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from ecec176 to 51f2d3f Compare November 18, 2024 07:04
@webkit-early-warning-system

This comment was marked as outdated.

@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 51f2d3f to 5c8deeb Compare November 18, 2024 07:38
@webkit-early-warning-system

This comment was marked as outdated.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 18, 2024
@webkit-ews-buildbot

This comment was marked as outdated.

@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Nov 18, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 56684c6 to 3969c57 Compare November 20, 2024 05:20
@webkit-early-warning-system

This comment was marked as off-topic.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 20, 2024
@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Nov 20, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 3969c57 to 504f453 Compare November 20, 2024 08:15
@webkit-early-warning-system

This comment was marked as outdated.

@webkit-ews-buildbot

This comment was marked as outdated.

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 20, 2024
@webkit-ews-buildbot

This comment was marked as outdated.

@nt1m nt1m removed the no-failure-limits Disable layout test failure limits on a pull-request label Nov 20, 2024
@nt1m nt1m requested review from annevk and rniwa November 20, 2024 18:12
@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Nov 20, 2024
@nt1m nt1m force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from 504f453 to a25e7d1 Compare November 20, 2024 18:13
@nt1m nt1m requested a review from darinadler November 20, 2024 18:13
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test relies on ::details-content to emulate the old behavior of details/summary. It'll re-progress once I implement the pseudo-element: https://bugs.webkit.org/show_bug.cgi?id=275211 (I already have a PR for it)

webkit-commit-queue pushed a commit to nt1m/WebKit that referenced this pull request Nov 20, 2024
https://bugs.webkit.org/show_bug.cgi?id=283429
rdar://140287648

Reviewed by Ryosuke Niwa and Chris Dumez.

Silence some smart pointer errors with unified sources shifting around. See WebKit#34778

* Source/WebCore/html/track/TextTrack.cpp:
(WebCore::TextTrack::invalidateTrackIndex): Deleted.
* Source/WebCore/html/track/TextTrack.h:
(WebCore::TextTrack::invalidateTrackIndex):

Canonical link: https://commits.webkit.org/286866@main
@nt1m nt1m added the merge-queue Applied to send a pull request to merge-queue label Nov 20, 2024
https://bugs.webkit.org/show_bug.cgi?id=157323
rdar://95148788

Reviewed by Ryosuke Niwa.

https://html.spec.whatwg.org/#the-details-and-summary-elements

This does the following changes to match the latest HTML spec:
- Implements details/summary disclosure triangle as a list item
- Implements collapsing of summary with `content-visibility: hidden` as mandated by spec, instead of appending/deleting the default slot
- Sets `display: block` on the default slot when the details element is open for easier styling
- Adds the user-agent styles for details/summary
- Stops forcing the used display value for details/summary
- Removes DetailsMarkerControl/RenderDetailsMarker (::-webkit-details-marker) since this is now covered by the list item ::marker

As a result, the following are fixed:
- ::marker can now be used instead of ::-webkit-details-marker (bug 157323)
- Changing list-style and display is now effective on the ::marker (bug 264381)
- element.checkVisibility() now works properly on elements in the default slot (bug 264733)
- summary::before now appears in the correct order (bug 61426)
- details::before/after now appear in the correct order (bug 61766)
- and more...

* LayoutTests/TestExpectations:
* LayoutTests/accessibility/ios-simulator/aria-details-toggle-summary-expected.txt:
* LayoutTests/fast/css-grid-layout/grid-was-populated-assert-expected.txt:
* LayoutTests/fast/html/details-clone-expected.txt: Removed.
* LayoutTests/fast/html/details-clone.html: Removed.
* LayoutTests/fast/html/details-inline-expected.html: Removed.
* LayoutTests/fast/html/details-inline.html: Removed.
* LayoutTests/fast/multicol/crash-in-vertical-writing-mode-expected.txt:
* LayoutTests/fast/multicol/crash-in-vertical-writing-mode.html:
* LayoutTests/http/tests/security/cross-origin-blob-transfer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/editing/run/inserthorizontalrule-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-details-element/details-blockification-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/the-details-element/details-display-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-details-element/toggleEvent-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-summary-element/anchor-with-inline-element-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-summary-element/interactive-content-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/details-summary-before-after-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-10-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-2-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-3-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-4-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-5-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-6-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-7-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-8-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-9-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/glib/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/glib/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-open6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-position-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-2-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-3-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-4-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-5-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-6-and-click-expected.txt: Removed.
* LayoutTests/platform/glib/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/glib/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/glib/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/glib/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/gtk/TestExpectations:
* LayoutTests/platform/gtk/fast/html/details-add-summary-10-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-7-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-8-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-add-summary-9-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open2-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-open4-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-remove-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-remove-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/gtk/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/gtk/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/ios/TestExpectations:
* LayoutTests/platform/ios/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-10-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-2-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-3-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-4-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-5-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-6-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-7-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-8-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-9-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/ios/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/ios/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-open6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-position-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-2-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-3-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-4-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-5-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-6-and-click-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/ios/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/ios/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/ios/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/ios/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/ios/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/ios/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open2-expected.txt:
* LayoutTests/platform/mac-ventura/fast/html/details-open4-expected.txt:
* LayoutTests/platform/mac/TestExpectations:
* LayoutTests/platform/mac/fast/css-generated-content/details-summary-before-after-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-details-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-details-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-1-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-10-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-10-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-2-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-3-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-4-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-5-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-6-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-7-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-7-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-8-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-8-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-9-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-9-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-add-summary-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-marker-style-expected.txt:
* LayoutTests/platform/mac/fast/html/details-marker-style-mixed-expected.txt:
* LayoutTests/platform/mac/fast/html/details-nested-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-nested-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-open6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-position-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-1-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-2-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-3-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-3-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-4-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-4-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-5-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-5-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-6-and-click-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-6-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-child-1-expected.txt:
* LayoutTests/platform/mac/fast/html/details-remove-summary-child-2-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/mac/fast/html/details-replace-text-expected.txt:
* LayoutTests/platform/mac/fast/html/details-writing-mode-expected.txt:
* LayoutTests/platform/mac/fast/html/details-writing-mode-mixed-expected.txt:
* LayoutTests/platform/mac/fast/multicol/span/clone-summary-expected.txt:
* LayoutTests/platform/wpe/TestExpectations:
* LayoutTests/platform/wpe/fast/html/details-add-summary-10-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-7-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-8-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-add-summary-9-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-no-summary4-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open-javascript-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open2-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-open4-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-remove-summary-2-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-3-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-4-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-5-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-remove-summary-6-and-click-expected.txt: Added.
* LayoutTests/platform/wpe/fast/html/details-replace-summary-child-expected.txt:
* LayoutTests/platform/wpe/fast/html/details-replace-text-expected.txt:
* LayoutTests/tables/table-col-indent-crash-expected.txt:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::determineAccessibilityRole):
* Source/WebCore/css/CSSPseudoSelectors.json:
* Source/WebCore/css/html.css:
(details, summary):
(details > summary:first-of-type):
(details[open] > summary:first-of-type):
(frameset, frame):
(frameset):
(iframe):
(details): Deleted.
(summary): Deleted.
(summary::-webkit-details-marker): Deleted.
* Source/WebCore/css/process-css-pseudo-selectors.py:
* Source/WebCore/html/HTMLDetailsElement.cpp:
(WebCore::HTMLDetailsElement::didAddUserAgentShadowRoot):
(WebCore::HTMLDetailsElement::attributeChanged):
(WebCore::HTMLDetailsElement::createElementRenderer): Deleted.
* Source/WebCore/html/HTMLDetailsElement.h:
* Source/WebCore/html/HTMLSummaryElement.cpp:
(WebCore::HTMLSummaryElement::create):
(): Deleted.
(WebCore::HTMLSummaryElement::createElementRenderer): Deleted.
(WebCore::HTMLSummaryElement::didAddUserAgentShadowRoot): Deleted.
* Source/WebCore/html/HTMLSummaryElement.h:
* Source/WebCore/html/shadow/DetailsMarkerControl.cpp: Removed.
* Source/WebCore/html/shadow/DetailsMarkerControl.h: Removed.
* Source/WebCore/html/shadow/detailsElementShadow.css: Added.
(:host summary):
(:host([open]) summary):
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp:
* Source/WebCore/rendering/RenderDetailsMarker.cpp: Removed.
* Source/WebCore/rendering/RenderDetailsMarker.h: Removed.
* Source/WebCore/rendering/RenderTreeAsText.cpp:
(WebCore::RenderTreeAsText::writeRenderObject):
* Source/WebCore/style/UserAgentStyle.cpp:
(WebCore::Style::UserAgentStyle::ensureDefaultStyleSheetsForElement):

Canonical link: https://commits.webkit.org/286869@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch from a25e7d1 to cd2f382 Compare November 20, 2024 21:29
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 286869@main (cd2f382): https://commits.webkit.org/286869@main

Reviewed commits have been landed. Closing PR #34778 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit cd2f382 into WebKit:main Nov 20, 2024
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 20, 2024
@nt1m nt1m deleted the eng/Implement-detailssummary-disclosure-triangle-as-a-list-item branch November 20, 2024 21:49
mnutt pushed a commit to movableink/webkit that referenced this pull request Nov 23, 2024
https://bugs.webkit.org/show_bug.cgi?id=283429
rdar://140287648

Reviewed by Ryosuke Niwa and Chris Dumez.

Silence some smart pointer errors with unified sources shifting around. See WebKit/WebKit#34778

* Source/WebCore/html/track/TextTrack.cpp:
(WebCore::TextTrack::invalidateTrackIndex): Deleted.
* Source/WebCore/html/track/TextTrack.h:
(WebCore::TextTrack::invalidateTrackIndex):

Canonical link: https://commits.webkit.org/286866@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layout and Rendering For bugs with layout and rendering of Web pages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants