From b3a9875af61a558f5ee566feb491511b254ad020 Mon Sep 17 00:00:00 2001
From: Paul Capron
Date: Tue, 31 Oct 2017 18:47:57 +0100
Subject: [PATCH] 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"`.
---
tests/unit/core/core.html | 8 ++++++++
tests/unit/core/selector.js | 6 +++++-
ui/focusable.js | 2 +-
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html
index 31a5bb579d5..7434a1e1fd4 100644
--- a/tests/unit/core/core.html
+++ b/tests/unit/core/core.html
@@ -108,9 +108,17 @@
..
+ .
+
+
+