Add info about ::-webkit-details-marker in Safari#36583
Add info about ::-webkit-details-marker in Safari#36583
Conversation
In Safari, `list-style: none` doesn't work to hide the `<summary>` marker. Instead you must use `::-webkit-details-marker` to target the Shadow DOM and hide it with `display: none`.
|
Preview URLs |
|
The element that does/doesn't support A likely issue is that the example, Customizing_the_disclosure_widget, should likely be on the |
|
Oh, haha, yeah thank you for the correction. Would you support a change to have the |
Yes. If you want to take it on, I was actually thinking the best solution would be to move the last example on the When creating a new example or changing the title of an example, the
The marker can be removed with |
|
I'm not sure if I'll come back to this soon, but I appreciate your insight. |
|
I added the example to |
Description
In Safari,
list-style: nonedoesn't work to hide the<summary>marker. Instead you must use::-webkit-details-markerto target the Shadow DOM and hide it withdisplay: none.Motivation
I needed to learn how to do this for my personal website, and it was hard to find a clear answer online. In particular, MDN seems to be the best resource for things like this, and it felt missing from this site.
Additional details
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=157323
Related issues and pull requests
There's a PR to change this behavior in Safari, but it will at least be useful to have this documentation for supporting historical versions of the browser.
WebKit GitHub: WebKit/WebKit#34778