Skip to content

Width and height safeguards hide audio controls + video #94

@JayPanoz

Description

@JayPanoz

Submitting a bug report that was discovered by @aferditamuriqi

Short description of the issue/suggestion:

There is a rendering issue with audio and video because of width: auto and height: auto in this declaration (should also impact the vertical writing version of the module).

https://github.com/readium/readium-css/blob/583011453612e6f695056ab6c086a2c4f4cac9c0/css/src/modules/ReadiumCSS-safeguards.css#L48-L69

For instance, in this screenshot, there should be audio controls:

screen_shot_2020-09-07_at_10 42 55_am

And when you disable width and height in dev tools, they are displayed correctly:

screen_shot_2020-09-07_at_10 42 49_am

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 the revert value:

screen_shot_2020-09-07_at_10 58 36_am

This should be fixed quickly as it’s a high priority bug.

Metadata

Metadata

Assignees

Labels

BugIndicates the issue is a bugProposed solutionIssues or feature requests with a solution in reach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions