-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
css: work around Firefox-specific behavior with .m-figure.
The `.m-figure > *` has `display: table-caption;` to make overlong content wrap to width of the image, instead of pushing out the figure border. However, this makes Firefox render just the first element and ignore everything after, thus the original figure descriptions weren't visible in Firefox, only in Chrome. Because HTML5 says <figcaption> has to be right inside <figure>, I can't wrap the caption together with other content in a <span>, although that would make Firefox render things properly. Instead I'm nesting all description inside <figcaption> in a .m-figure-description, which then reverts all styling applied for <figcaption>. Kinda ew, but works. Originally this was reported for just image figures, but the same problem applies to math and graph figures as well. Not for code/console figure though, as those don't have `display: table-caption;` and instead span the whole width always. This has to be fixed in m.htmlsanity as well, doing that in a separate commit as it's a bit involved as well.
- Loading branch information
Showing
7 changed files
with
190 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.