diff --git a/source b/source index a229f2e5660..47cea845189 100644 --- a/source +++ b/source @@ -45350,9 +45350,8 @@ interface HTMLLabelElement : HTMLElement {
name
pattern
placeholder
popoverhidetarget
popovershowtarget
popovertoggletarget
popovertarget
popovertargetaction
readonly
required
size
HTMLInputElement
.popoverhidetarget
+ popovertarget
popovershowtarget
- popovertoggletarget
+ popovertargetaction
multiple
,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
readonly
,
required
,
size
,
@@ -47334,9 +47308,8 @@ interface HTMLInputElement : HTMLElement {
max
,
min
,
multiple
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
,
step
, and
width
.
@@ -47438,9 +47411,8 @@ interface HTMLInputElement : HTMLElement {
max
,
min
,
multiple
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
,
step
, and
width
.
@@ -47544,9 +47516,8 @@ interface HTMLInputElement : HTMLElement {
max
,
min
,
multiple
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
,
step
, and
width
.
@@ -47815,9 +47786,8 @@ ldh-str = < as defined in height,
max
,
min
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
,
step
, and
width
.
@@ -47914,9 +47884,8 @@ ldh-str = < as defined in max,
min
,
multiple
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
,
step
, and
width
.
@@ -48090,9 +48059,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -48244,9 +48212,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -48402,9 +48369,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -48556,9 +48522,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -48703,9 +48668,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -48868,9 +48832,8 @@ ldh-str = < as defined in minlength,
multiple
,
pattern
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
size
,
src
, and
width
.
@@ -49141,9 +49104,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
readonly
,
required
,
size
,
@@ -49250,9 +49212,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
readonly
,
required
,
size
,
@@ -49367,9 +49328,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
readonly
,
size
,
src
,
@@ -49545,9 +49505,8 @@ ldh-str = < as defined in multiple,
pattern
,
placeholder
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
readonly
,
size
,
src
,
@@ -49798,9 +49757,8 @@ ldh-str = < as defined in min,
minlength
,
pattern
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
placeholder
,
readonly
,
size
,
@@ -49886,9 +49844,8 @@ ldh-str = < as defined in formmethod,
formnovalidate
,
formtarget
,
- popoverhidetarget
,
- popovershowtarget
, and
- popovertoggletarget
content
+ popovertarget
, and
+ popovertargetaction
content
attributes; value
IDL attribute.
The value
IDL attribute is in mode formnovalidate,
formtarget
,
height
,
- popoverhidetarget
,
- popovershowtarget
,
- popovertoggletarget
,
+ popovertarget
,
+ popovertargetaction
,
src
, and
width
content attributes;
value
IDL attribute.
popoverhidetarget
,
- popovershowtarget
, and
- popovertoggletarget
.
+ popovertarget
and
+ popovertargetaction
.
The following content attributes must not be specified and do not apply to the
element:
@@ -50363,9 +50318,8 @@ ldh-str = < as defined in apply to the element:
- popoverhidetarget
,
- popovershowtarget
, and
- popovertoggletarget
.
popovertarget
and
+ popovertargetaction
.
The following content attributes must not be specified and do not apply to the element: @@ -51945,9 +51899,8 @@ You cannot submit this form when the field is incorrect.
formnovalidate
formtarget
name
popoverhidetarget
popovershowtarget
popovertoggletarget
popovertarget
popovertargetaction
type
value
HTMLButtonElement
.The popover
attribute is an enumerated
- attribute. The following table lists the states for this attribute:
Keyword | State | -Keywords | -Description | +Brief description |
---|---|---|---|---|
Auto state | auto |
+ data-x="attr-popover-auto">auto
+ auto | Closes other popovers when opened; has light dismiss. | The empty string |
Manual state | manual |
+ data-x="attr-popover-manual">manual
+ manual | Does not close other popovers; does not light dismiss. |
The attribute may be omitted. The invalid value default - is the manual state. The missing value default is the no popover - state.
+The popover
attribute's invalid value default is the manual
+ state and its missing value default is the no popover state.
The popover
IDL attribute
- must reflect the popover attribute, limited
- to only known values.
The popover
IDL
+ attribute must reflect the popover attribute,
+ limited to only known values.
Every HTML element has a popover visibility state, initially hidden, with these potential @@ -81877,7 +81830,7 @@ dictionary DragEventInit : MouseEventInit {
The Document
has an auto popover list, which is a list of
all the elements in the Document
's top layer whose popover
attribute is in the auto state, in the same order.
The Document
has a popover pointerdown target, which is an HTML element or null, initially null.
popover
attribute is in the auto state, then this will also close all other auto state, then this will also close all other auto popovers unless they are an ancestor of
element according to the topmost popover ancestor algorithm.If element's popover
attribute is in the auto state, then:
Let originalType be the value of element's If shouldRestoreFocus is true and element's Queue a popover toggle event task given element, " If element's Run hide all popovers until given
@@ -82255,22 +82208,22 @@ dictionary DragEventInit : MouseEventInit {
The topmost popover ancestor algorithm will return the topmost (latest in the
auto popover list) ancestor popover for the provided popover. Popovers can be
related to each other in several ways, creating a tree of popovers. There are two paths through
- which one popover (call it the "child" popover) can have an ancestor popover (call it the
+ which one popover (call it the "child" popover) can have a topmost ancestor popover (call it the
"parent" popover): The popovers are nested within each other in the DOM tree. In this case, the descendant
- popover is the "child" and its ancestor popover is the "parent". The popovers are nested within each other in the node tree. In this case, the descendant
+ popover is the "child" and its topmost ancestor popover is the "parent". An invoking element (e.g. a An invoking element (e.g., a In each of the relationships formed above, the parent popover must be strictly earlier in the
- auto popover list than the child popover, or it does not form a valid ancestral
- relationship. This eliminates non-showing popovers and self-pointers (e.g. a popover with an
+ In each of the relationships formed above, the parent popover has to be strictly earlier in
+ the auto popover list than the child popover, or it does not form a valid ancestral
+ relationship. This eliminates non-showing popovers and self-pointers (e.g., a popover with an
anchor attribute that points back to the same popover), and it allows for the construction of a
well-formed tree from the (possibly cyclic) graph of connections. For example, if two popovers
have anchors pointing to each other, the only valid relationship is that the first one to open is
@@ -82353,7 +82306,7 @@ dictionary DragEventInit : MouseEventInit {
If currentNode's If element's DragEventInit : MouseEventInit {
popover
attribute is not in the no popover state, then set element's
+ data-x="attr-popover-none-state">no popover state, then set element's
previously focused element to originallyFocusedElement.DragEventInit : MouseEventInit {
popover
attribute is in the auto state, then:
-
- button
) has one of the invoking attributes (e.g.
- popovertoggletarget
) pointing to a popover. In
- this case, the popover is the "child", and the DOM-contained popover of the invoking element is
- the "parent". The invoker must be in a popover and reference an open popover.button
) has a popovertarget
attribute pointing to a popover. In this case,
+ the popover is the "child", and the popover subtree the invoking element is in is the
+ "parent". The invoker has to be in a popover and reference an open popover.
popover
attribute is in
- the auto state and currentNode's
+ the auto state and currentNode's
popover visibility state is showing,
then return currentNode.
popover
attribute is in the
- no popover state, then:
If throwExceptions is true, then throw a @@ -82451,72 +82404,95 @@ dictionary DragEventInit : MouseEventInit {
Return true.
Buttons may have the following content attributes, known - as the popover target attributes:
+Buttons may have the following content attributes:
popovertoggletarget
popoverhidetarget
popovershowtarget
The popover target attributes allow certain types of buttons to show and hide
- element with the popover
attribute. If a popover target
- attribute is specified, then that attribute's value must be the ID of element with the popover
attribute.
If specified, the popovertarget
attribute value must
+ be the ID of an element with a popover
attribute in the same tree as the button with the popovertarget
attribute.
The popovertargetaction
attribute is an
+ enumerated attribute with the following keywords and states:
Keyword + | State + | Brief description + |
---|---|---|
toggle
+ | toggle + | Shows or hides the targeted popover element. + |
show
+ | show + | Shows the targeted popover element. + |
hide
+ | hide + | Hides the targeted popover element. + |
The popovertargetaction
attribute's invalid value default and missing value default are both the toggle state.
The following shows how popovershowtarget
can
- be used to open a popover:
The following shows how the popovertarget
attribute
+ in combination with the popovertargetaction
+ attribute can be used to show a popover:
<div popover=auto id="foo">
This is a popover!
</div>
-<button popovershowtarget="foo">
+<button popovertarget="foo" popovertargetaction="show">
Show a popover
</button>
- The following shows how popovertoggletarget
+
The following shows how the popovertarget
attribute
can open and close a manual popover, which can't be closed with light dismiss:
<div popover=manual id="foo">
This is a popover!
</div>
-<button popovertoggletarget="foo">
+<button popovertarget="foo">
Show or hide a popover
</button>
interface mixin PopoverTargetElement { - [CEReactions] attribute Element? popoverToggleTargetElement; - [CEReactions] attribute Element? popoverHideTargetElement; - [CEReactions] attribute Element? popoverShowTargetElement; +
IDL attribute must + reflect theinterface mixin PopoverInvokerElement { + [CEReactions] attribute Element? popoverTargetElement; + [CEReactions] attribute DOMString popoverTargetAction; };
The
- -popoverToggleTargetElement
IDL attribute must - reflect thepopovertoggletarget
- attribute.The
+ data-x="dom-popoverTargetElement">popoverTargetElementpopoverHideTargetElement
IDL attribute must - reflect thepopoverhidetarget
- attribute.popovertarget
attribute.The
+ data-x="dom-popoverTargetAction">popoverTargetAction IDL attribute must + reflect thepopoverShowTargetElement
IDL attribute must - reflect thepopovershowtarget
- attribute.popovertargetaction
+ attribute, limited to only known values.To run the popover target attribute activation behavior given a
@@ -82526,32 +82502,24 @@ dictionary DragEventInit : MouseEventInit {Node
node:
If popover is null, then return.
If node doesn't have the popovertoggletarget
attribute, then:
If node has a popovershowtarget
attribute and popover's
- popover visibility state is showing,
- then return.
If node's popovertargetaction
+ attribute is in the show state and
+ popover's popover visibility state is showing, then return.
If node has a popoverhidetarget
attribute and popover's
- popover visibility state is hidden,
- then return.
If node's popovertargetaction
+ attribute is in the hide state and
+ popover's popover visibility state is hidden, then return.
If popover's popover visibility state is showing and the result of running check popover - validity given popover and true is true, then run the hide popover - algorithm given popover, true, true, and false.
Otherwise, if popover's popover visibility state is hidden and the result of running check popover - validity given popover and false is true:
+ validity given popover, false, and false is true:Set popover's popover invoker to node.
If node has a form owner and node is a submit button, then return null.
Let idref be null.
If node has a popovertoggletarget
attribute, then set
- idref to the value of node's popovertoggletarget
attribute.
Otherwise, if node has a popovershowtarget
attribute, then set idref
- to the value of node's popovershowtarget
attribute.
Otherwise, if node has a popoverhidetarget
attribute, then set idref
- to the value of node's popoverhidetarget
attribute.
If idref is null, then return null.
Let popoverElement be the first element in tree - order, within node's root's descendants, whose ID is - idref; otherwise, if there is no such element, null.
Let popoverElement be node's popovertarget
-associated element.
If popoverElement is null, then return null.
If popoverElement's popover
attribute is in
- the no popover state, then return null.
Return popoverElement.
If targetPopover is not null and targetPopover's popover
attribute is in the auto state and targetPopover's popover
+ data-x="attr-popover-auto-state">auto state and targetPopover's popover
visibility state is showing, then return
targetPopover.
formnovalidate
;
formtarget
;
name
;
- popoverhidetarget
;
- popovershowtarget
;
- popovertoggletarget
;
+ popovertarget
;
+ popovertargetaction
;
type
;
value
HTMLButtonElement
name
;
pattern
;
placeholder
;
- popoverhidetarget
;
- popovershowtarget
;
- popovertoggletarget
;
+ popovertarget
;
+ popovertargetaction
;
readonly
;
required
;
size
;
@@ -131142,23 +131087,20 @@ interface External {
popover
auto
";
- "manual
";
- popoverhidetarget
- input
; button
- auto
";
+ "manual
";
popovershowtarget
+ popovertarget
input
; button
- popovertoggletarget
+ popovertargetaction
input
; button
- toggle
";
+ "show
";
+ "hide
"
poster
video