mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
a276cf2d5e
The popoverTargetElement seems to be one of the only cases of a reflected Element? attribute in the HTML spec, the behaviour of which is specified in section 2.6.1. Buttons can't actually toggle popovers yet because showing/hiding popovers is not implemented yet.
13 lines
545 B
Text
13 lines
545 B
Text
// https://html.spec.whatwg.org/multipage/popover.html#attr-popovertargetaction
|
|
[MissingValueDefault=toggle, InvalidValueDefault=toggle]
|
|
enum PopoverTargetActionAttribute {
|
|
"toggle",
|
|
"show",
|
|
"hide"
|
|
};
|
|
|
|
// https://html.spec.whatwg.org/multipage/popover.html#popoverinvokerelement
|
|
interface mixin PopoverInvokerElement {
|
|
[Reflect=popovertarget, CEReactions] attribute Element? popoverTargetElement;
|
|
[Reflect=popovertargetaction, Enumerated=PopoverTargetActionAttribute, CEReactions] attribute DOMString popoverTargetAction;
|
|
};
|