chiark / gitweb /
m.htmlsanity: work around FF misbehavior in <figure> printing.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 4 Jan 2022 19:14:12 +0000 (20:14 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 4 Jan 2022 19:56:10 +0000 (20:56 +0100)
commit7b1dae87b9d825924333d41ed10688ebb6c0305a
treef5565143c9c1e8e10e9176924aab88f845386258
parentb04d3d30db165ac155ab64720851302ff17e4266
m.htmlsanity: work around FF misbehavior in <figure> printing.

Counterpart to the previous commit. Done only if the figure has a
.m-figure CSS class, as that's where the Firefox bug is triggered due to
the `display: table-caption` -- code figures and console figures are
unaffected.

There's still a bit of potential future work where the figure
description shouldn't have any block-level elements. But that doesn't
trigger any rendering bugs so not so important.
plugins/m/htmlsanity.py
plugins/m/test/components/page.html
plugins/m/test/dot/page-240.html
plugins/m/test/dot/page.html
plugins/m/test/images/page.html