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

Don't use display:block on summary elements #18359

Merged
merged 2 commits into from Oct 13, 2017
Merged

Conversation

balderdash
Copy link
Contributor

@balderdash balderdash commented Oct 13, 2017

Using display:block on a summary element removes the little expando-triangle on Firefox. Apparently this behavior is in line with the spec, and Chrome is the one in violation: https://bugzilla.mozilla.org/show_bug.cgi?id=1283989

The fix is to use display: list-item, which gives us the triangle next to "show code" in both browsers.

screenshot from 2017-10-12 18-27-03

screenshot from 2017-10-12 18-27-21

@balderdash balderdash requested a review from Hamms October 13, 2017 01:28
Copy link
Contributor

@Hamms Hamms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dang Chrome, bein' all permissive

@balderdash balderdash merged commit eb66fa4 into staging Oct 13, 2017
@balderdash balderdash deleted the firefox-show-code branch October 25, 2017 20:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants