-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Width and height safeguards hide audio controls + video #94
Comments
Duplicate issue moved: #100 Problematic CSS: readium-css/css/src/modules/ReadiumCSS-safeguards.css Lines 52 to 53 in 5830114
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 I fixed this problem by adding the following to the author stylesheet: audio {
width: 100%;
height: 2em;
} I would have preferred to use Any idea of why |
Update: in Thorium we now inject the following CSS audio[controls] {
width: revert;
height: revert;
} |
Proposal: add Daniel’s snippet to the safeguards module. |
Audio now on its own so that value auto for width or height doesn’t break controls. Resolves #94
Submitting a bug report that was discovered by @aferditamuriqi
Short description of the issue/suggestion:
There is a rendering issue with
audio
andvideo
because ofwidth: auto
andheight: auto
in this declaration (should also impact the vertical writing version of the module).readium-css/css/src/modules/ReadiumCSS-safeguards.css
Lines 48 to 69 in 5830114
For instance, in this screenshot, there should be audio controls:
And when you disable
width
andheight
in dev tools, they are displayed correctly:Given these can be useful for other media e.g.
img
,audio
+video
should be moved to their own specific declaration. If we want to safeguard the sizing and fall back to the browser’s default, it seems we can use therevert
value:This should be fixed quickly as it’s a high priority bug.
The text was updated successfully, but these errors were encountered: