@jsenv/dom 0.17.85 → 0.17.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsenv_dom.js +17 -15
- package/package.json +1 -1
package/dist/jsenv_dom.js
CHANGED
|
@@ -4976,14 +4976,19 @@ const getFocusVisibilityInfo = (node, { excludeAriaHidden } = {}) => {
|
|
|
4976
4976
|
}
|
|
4977
4977
|
// Continue checking ancestors
|
|
4978
4978
|
}
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4979
|
+
const isPopover =
|
|
4980
|
+
nodeOrAncestor.popover !== null && nodeOrAncestor.popover !== undefined;
|
|
4981
|
+
const isOpenPopover = isPopover && nodeOrAncestor.matches(":popover-open");
|
|
4982
|
+
// A dialog shown as a popover (showPopover()) is open without `open`,
|
|
4983
|
+
// which only show() and showModal() set.
|
|
4982
4984
|
if (
|
|
4983
|
-
nodeOrAncestor
|
|
4984
|
-
nodeOrAncestor.
|
|
4985
|
-
!
|
|
4985
|
+
elementIsDialog(nodeOrAncestor) &&
|
|
4986
|
+
!nodeOrAncestor.open &&
|
|
4987
|
+
!isOpenPopover
|
|
4986
4988
|
) {
|
|
4989
|
+
return { visible: false, reason: "inside closed dialog element" };
|
|
4990
|
+
}
|
|
4991
|
+
if (isPopover && !isOpenPopover) {
|
|
4987
4992
|
return { visible: false, reason: "inside closed popover element" };
|
|
4988
4993
|
}
|
|
4989
4994
|
// Open popovers and open dialogs render in the top layer: they escape
|
|
@@ -4992,11 +4997,7 @@ const getFocusVisibilityInfo = (node, { excludeAriaHidden } = {}) => {
|
|
|
4992
4997
|
if (elementIsDialog(nodeOrAncestor) && nodeOrAncestor.open) {
|
|
4993
4998
|
break;
|
|
4994
4999
|
}
|
|
4995
|
-
if (
|
|
4996
|
-
nodeOrAncestor.popover !== null &&
|
|
4997
|
-
nodeOrAncestor.popover !== undefined &&
|
|
4998
|
-
nodeOrAncestor.matches(":popover-open")
|
|
4999
|
-
) {
|
|
5000
|
+
if (isOpenPopover) {
|
|
5000
5001
|
break;
|
|
5001
5002
|
}
|
|
5002
5003
|
nodeOrAncestor = nodeOrAncestor.parentNode;
|
|
@@ -15039,10 +15040,11 @@ const startDragTo = (
|
|
|
15039
15040
|
* A press that WOULD be a drag, and is not.
|
|
15040
15041
|
*
|
|
15041
15042
|
* Recognized exactly as `startDragTo` recognizes it: the intent is established by
|
|
15042
|
-
* the same threshold — a mouse travelling, a finger holding still,
|
|
15043
|
-
*
|
|
15044
|
-
* is established: nothing is grabbed, nothing
|
|
15045
|
-
* at the instant the grab would have been
|
|
15043
|
+
* the same threshold — a mouse travelling a few pixels, a finger holding still,
|
|
15044
|
+
* or travelling those same few pixels inside a `[data-drag-on-contact]`. What
|
|
15045
|
+
* differs is what happens once it is established: nothing is grabbed, nothing
|
|
15046
|
+
* translates, and `onRefuse` is told at the instant the grab would have been
|
|
15047
|
+
* acquired.
|
|
15046
15048
|
*
|
|
15047
15049
|
* That instant is the whole point. An object that stays put under the hand and
|
|
15048
15050
|
* says nothing reads as a screen that is broken, and the hand pulls harder; the
|