Skip to content

Add ::-webkit-details-marker #5869

@Schweinepriester

Description

@Schweinepriester

Coming from https://css-tricks.com/how-to-animate-the-details-element/

Turn off the default triangle: details summary::-webkit-details-marker { display:none; }. You can't animate that one.

=> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#customizing_the_disclosure_widget

Chrome doesn't support this yet, however, so we also need to use its non-standard ::-webkit-details-marker pseudo-element to customize the appearance in that browser.

The intention seems to be that https://developer.mozilla.org/en-US/docs/Web/CSS/::marker will cover <summary> as well, but doesn't seem to be the case just yet.

https://stackoverflow.com/questions/6195329/how-can-you-hide-the-arrow-that-is-displayed-by-default-on-the-html5-details-e seems to gather some information as well.

Tried to find a spec or some docs like some -webkits have, but didn't yet manage to find anything.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions