monks/pointer_events
The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
Values
pub const auto_: #(String, String)
- : The element behaves as it would if the
pointer-eventsproperty were not specified. In SVG content, this value and the valuevisiblePaintedhave the same effect.
pub const none: #(String, String)
- : The element on its own is never the target of pointer events. However its subtree could be kept targetable by setting
pointer-eventsto some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to or from the descendant during the event capture and bubble phases. > [!NOTE] > Thepointerenterandpointerleaveevents are fired when a pointing device is moved into an element or one of its descendants. So, even ifpointer-events: noneis set on the parent and not set on children, the events are triggered on the parent after the pointer is moved in or out of a descendant.
pub const revert_layer: #(String, String)
pub fn var(variable: String) -> #(String, String)
Enter a variable name to be used for pointer-events.
It will be wrapped in var() and have -- prepended.
pub const visible_painted: #(String, String)
visiblePainted value of pointer-events
pub const visible_stroke: #(String, String)
visibleStroke value of pointer-events