]> source.dussan.org Git - jquery-ui.git/commit
Focusable: Fix handling of `visibility: collapse`
authorPaul Capron <PaulCapron@users.noreply.github.com>
Wed, 14 Oct 2020 21:53:11 +0000 (23:53 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 21:53:11 +0000 (23:53 +0200)
commitf5d38e2e05bd54073c2bf8e8210b78b2cf2637d8
treeefe42c8dd3eadcb40d3ecea73e4a068c9b91c802
parentbfffac3fd5e3d5ce43070f9437d43005fc5eaeb2
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 d3025968f34 introduced a regression by testing with `!== "hidden"`
instead of `=== "visible"`.

Closes gh-1843
tests/unit/core/core.html
tests/unit/core/selector.js
ui/focusable.js