Closed danielweck closed 2 years ago
That’s a good question.
I believe I discussed this bug with someone in Slack a few months ago but I’m afraid I can’t recall whether it was @aferditamuriqi or @mickael-menu. But that person had a fix if I’m not mistaken. Unfortunately I can’t find any issue nor PR so it could have been a slightly different bug?
Yes we did discuss this and I'll look up the fix and share it
Thanks!
Duplicate of https://github.com/readium/readium-css/issues/94
Problematic CSS: https://github.com/readium/readium-css/blob/583011453612e6f695056ab6c086a2c4f4cac9c0/css/src/modules/ReadiumCSS-safeguards.css#L52-L53
I have an EPUB constructed from a set of webpages, notably this one (scroll down to see the audio elements):
http://diagramcenter.org/diagram-reports/diagram-report-2019/sonification.html
As tested in Thorium, ReadiumCSS applies
auto
to thewidth
andheight
properties, resulting in a0px
CSS box (i.e. invisible audio element despite thecontrols
attribute).I fixed this problem by adding the following to the author stylesheet:
I would have preferred to use
inherit
orinitial
in order to avoid "hard coding" property values (especially theem
value) ... but this didn't work in the Web Inspector (Chromium).Any idea of why
auto
breaks things?