Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summary element styling needs to be scoped to details element #891

Open
scottaohara opened this issue Dec 12, 2022 · 0 comments
Open

summary element styling needs to be scoped to details element #891

scottaohara opened this issue Dec 12, 2022 · 0 comments

Comments

@scottaohara
Copy link

The current display style applied to the summary element results in unwanted list-item styling for instances where the summary element is not used properly.

summary {
  display: list-item;
}

This should rather be something like details > summary:first-of-type - which matches how modern browsers are treating the element.

scottaohara added a commit to scottaohara/normalize.css that referenced this issue Dec 12, 2022
closes necolas#891

This revised style ensures that only summary elements that are properly used will be provided the `display: list-item` style.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant