简体   繁体   中英

Recent firefox and the webshim implementation of details

Recent releases of Firefox (eg 49.0) implement the details tag. Unfortunately this is partially not compatible with the webshim implementation of details. The black triangle disappears although the content of the summary tag is still visible and clicking it still hides and shows the content of details.

This can be seen in https://afarkas.github.io/webshim/demos/#DetailsSummary

Any known workaround? Due to IE and Edge this polyfill is still useful.

I should have googled a little longer.

A partial workaround is adding to your CSS

details summary {
   display: list-item !important;
}

Additional information can be found here:

https://gist.github.com/ericclemmons/b146fe5da72ca1f706b2ef72a20ac39d

https://bugzilla.mozilla.org/show_bug.cgi?id=1283989

https://github.com/StylishThemes/GitHub-Dark/commit/20c524d2fe59d874afcd675f0e9e01b23cefd35a

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM