Skip to content

Add ::-webkit-details-marker #5869

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions