RESOLVED FIXED 275211
Add `::details-content` pseudo-element
https://bugs.webkit.org/show_bug.cgi?id=275211
Summary Add `::details-content` pseudo-element
L. David Baron
Reported 2024-06-06 08:01:43 PDT
https://github.com/whatwg/html/pull/10265 is proposing changes to specify the rendering of the <details> element in more detail. (See also https://github.com/WebKit/standards-positions/issues/351 .) Some of these changes match existing implementations. However, I'm aware of a number of things that would need to change in WebKit to match these changes: * the existing changes in bug 157323 and bug 228843 would be needed to match what is already in the HTML spec * the display property would need to be allowed to change more generally on both the <details> and also (I think) <summary> elements * the ::details-content pseudo-element specified in https://drafts.csswg.org/css-pseudo-4/#details-content-pseudo would need to be implemented and made to match the correct element. (There may be some work here to implement the "part-like pseudo-element" concept.) * the default display of the internal <slot> matched by the ::details-content pseudo-element would need to change to block rather than contents. (This is the one part here that involves compatibility risk, and it's possible we may need to revert this piece.)
Attachments
Radar WebKit Bug Importer
Comment 1 2024-06-13 12:27:43 PDT
Tim Nguyen (:ntim)
Comment 2 2024-10-07 09:54:26 PDT
Bug 157323 covers a lot of this (using display/content-visibility, stop forcing the display value, etc.), I'll use this bug to expose the ::details-content pseudo-element
Tim Nguyen (:ntim)
Comment 3 2024-11-17 23:50:23 PST
Tim Nguyen (:ntim)
Comment 4 2024-11-20 15:40:35 PST
I filed bug 283446 to support chaining things after element backed pseudos. I have another PR that covers this (although ::first-line doesn't currently work) but wanted to get it landed separately.
EWS
Comment 5 2024-11-21 00:00:38 PST
Committed 286891@main (2e79c586fcac): <https://commits.webkit.org/286891@main> Reviewed commits have been landed. Closing PR #36786 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.