Support ::details-content pseudo-element and improved styling of <details> element
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: dbaron, Assigned: lwarlow)
References
(Blocks 3 open bugs)
Details
(Keywords: dev-doc-complete, parity-chrome, parity-safari)
User Story
web-feature: details-content
Attachments
(1 file, 3 obsolete files)
whatwg/html#10265 specifies the rendering of the <details> element in more detail than it was previously specified. Many of these changes already match what is implemented in Gecko. I think I'm aware of three things that would need to change to match them:
- enable the preference implemented in bug 1856374 to allow changing
displayon the<details>element - implement the
::details-contentpseudo-element and make it match the correct element. (There may be some work here to implement the "part-like pseudo-element" concept.) - Change the default
displayof the internal<slot>matched by the::details-contentpseudo-element toblockrather thancontents. (This is the one part here that involves compatibility risk.)
There's also one additional case where Gecko doesn't match an earlier change (whatwg/html#6466) to the HTML spec (see bug 1724299):
- the styling that makes the
<details>open and close (which is currently in details.css) should usecontent-visibilityrather thandisplay.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•11 months ago
|
Comment 3•10 months ago
|
||
This is a test-config-only change with no user impact.
We've got bug 1941406 filed to make this pref-flip for users, but for now we
might as well make the pref-flip for the tests so that we can get some test
coverage and get a more realistic picture of the test-failures that remain.
Updated•10 months ago
|
Updated•10 months ago
|
Comment 4•10 months ago
|
||
[sorry, a bug-number mis-copypaste led to me posting a patch here instead of on a different bug just now. Cleaned up now.]
While I'm posting, let's make this comment useful -- I'll note that this bug is needed (and is probably the only thing that's needed) to pass these 6 WPTs which may potentially be relevant to interop-2025:
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-001.html
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-002.html
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-003.html
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-004.html
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-005.html
https://wpt.fyi/results/html/rendering/the-details-element/details-pseudo-elements-006.html
Comment 5•10 months ago
|
||
(In reply to David Baron :dbaron: (⌚️UTC-4, no longer working on Mozilla) from comment #0)
- enable the preference implemented in bug 1856374 to allow changing
displayon the<details>element
I've just posted a patch on bug 1941406 to do that, BTW.
Updated•9 months ago
|
Updated•8 months ago
|
| Assignee | ||
Comment 6•8 months ago
|
||
Updated•8 months ago
|
Comment 7•8 months ago
|
||
No behavior change right now, but this will unblock D241100.
Comment 8•8 months ago
|
||
Comment on attachment 9471222 [details]
Bug 1901037 - Allow UA widget nodes to be pseudo-elements. r=#style
Revision D241106 was moved to bug 1953539. Setting attachment 9471222 [details] to obsolete.
Comment 9•8 months ago
|
||
Depends on D241100.
Comment 10•8 months ago
|
||
Comment 11•8 months ago
|
||
Backed out for causing multiple rendering related wpt failures
| Assignee | ||
Comment 12•8 months ago
|
||
Waiting on Emilio's display: contents fix and then I'll rebase my change atop that should deal with most of the test oddities that I missed.
Comment 13•8 months ago
|
||
Comment 14•8 months ago
|
||
Comment 15•8 months ago
|
||
Comment 16•7 months ago
|
||
Backed out for causing dt failures @ browser_rules_pseudo-element_01.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/0119a8586843e081c74c72342e2301e9ff25feca
Comment 17•7 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c6d9a112ceec
https://hg.mozilla.org/mozilla-central/rev/f36f389877eb
| Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Comment 18•7 months ago
|
||
Comment on attachment 9471713 [details]
Bug 1901037 - [devtools] Add test for ::details-content pseudo element in Rules view. r=#devtools.
Revision D241397 was moved to bug 1935067. Setting attachment 9471713 [details] to obsolete.
Comment 19•7 months ago
|
||
This landed, so let's close the bug, the devtools test was moved :)
Updated•7 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Description
•