Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Focusable: Fix handling of `visibility: collapse`
"collapse" is similar to "hidden", with a slight difference in the case of tr/tbody/td/colgroup elements. See https://www.w3.org/TR/CSS22/visufx.html#visibility See https://www.w3.org/TR/CSS22/tables.html#dynamic-effects See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Table_example "visibility: collapse" elements are always not focusable, though. Commit d302596 introduced a regression by testing with `!== "hidden"` instead of `=== "visible"`. Closes gh-1843
- Loading branch information
Showing
with
14 additions
and 2 deletions.
- +8 −0 tests/unit/core/core.html
- +5 −1 tests/unit/core/selector.js
- +1 −1 ui/focusable.js