You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The disclosure triangle of <summary> blocks does not show in Firefox when it is set to display:block; According to the bugzilla report (linked below), this is the expected behavior. Therefore it's default setting should be set as display:list-item (CC @silverwind).
Odd... the internal Firefox stylesheet (v47.0.1; resource://gre-resources/html.css) sets summary with a display:block initially. But if it is wrapped inside a <details> element, this definition applies:
details>summary::-moz-list-bullet{list-style-type: disclosure-closed;/* Prevent elements in summary being selected when clicking on the triangle. */-moz-user-select: none;}details[open] >summary::-moz-list-bullet{list-style-type: disclosure-open;}
The UA sheet looks alright for me in Firefox 49. The pref was flipped on in 49, resulting in display:list-item for details > summary, and display:block for standalone summary, presumably for compatibilty reasons.
Activity
silverwind commentedon Jul 2, 2016
I think this is more of an GitHub bug than anything, they explicitely set
summary {display:block}which causes the incorrect rendering on Firefox.Mottie commentedon Jul 2, 2016
If you look at GitHub's current css source, they are using:
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */silverwind commentedon Jul 3, 2016
Ah, didn't realize that
display: blockis happening in normalize.css, so it's a valid issue indeed!jonathantneal commentedon Jul 3, 2016
Thanks for letting me know, and also for the link in the spec. I’ll take care of this as soon as I can validate this in a test. Looks like the new display property will work just fine per https://developer.mozilla.org/en-US/docs/Web/CSS/display#compat-desktop (but again, testing to be sure)
jonathantneal commentedon Jul 6, 2016
Implementation status:
Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1283989
Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=590014
Browser “Last 2” test results: https://app.crossbrowsertesting.com/public/i76b092cd2b52b86/screenshots/z344607e8fe6c4982ab8
Pull Request:
#606
Mottie commentedon Jul 6, 2016
Odd... the internal Firefox stylesheet (v47.0.1; resource://gre-resources/html.css) sets summary with a
display:blockinitially. But if it is wrapped inside a<details>element, this definition applies:So I think the tests need to be updated.
silverwind commentedon Jul 6, 2016
The UA sheet looks alright for me in Firefox 49. The pref was flipped on in 49, resulting in
display:list-itemfordetails > summary, anddisplay:blockfor standalonesummary, presumably for compatibilty reasons.aethanyc commentedon Jul 7, 2016
<details>and<summary>will ship in Firefox 49 so the stylesheet before this version is outdated.Mottie commentedon Sep 21, 2016
Firefox v49 went live yesterday!
Click me
Did you see an arrow indicator in GitHub?!
Update: Request to GitHub to update to normalize.css v4.2.0 was sent!
jonathantneal commentedon Oct 3, 2016
This is also live in v5.0.0 which has been tagged and published to npm as
normalize.css.