Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

SJRK-374: solved issue of empty video element being focusable in Firefox #89

Merged
merged 3 commits into from Jul 17, 2020

Conversation

BlueSlug
Copy link
Member

No description provided.

background: url(../img/icons/Video-background.svg) center center no-repeat;
}

video:not([controls]) {
display: none;
height: 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is height required here? display: none; should remove the element visually, layout spacing, and from the a11y tree.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good point. I'd left it in there as this is what Normalize does with audio elements, but since this rule isn't even present in Normalize after 7.x, I've removed the height specification and added an audio:not([controls]) selector to this rule, to ensure it continues to work as expected if and when we update Normalize

@cindyli cindyli merged commit 90e9280 into fluid-project:master Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants