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 all: #(String, String)

all value of pointer-events

pub const auto_: #(String, String)
  • : The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the value visiblePainted have the same effect.
pub const fill: #(String, String)

fill value of pointer-events

pub const inherit: #(String, String)
pub const initial: #(String, String)
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-events to 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] > The pointerenter and pointerleave events are fired when a pointing device is moved into an element or one of its descendants. So, even if pointer-events: none is 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 painted: #(String, String)

painted value of pointer-events

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for pointer-events

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const stroke: #(String, String)

stroke value of pointer-events

pub const unset: #(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: #(String, String)

visible value of pointer-events

pub const visible_fill: #(String, String)

visibleFill value of pointer-events

pub const visible_painted: #(String, String)

visiblePainted value of pointer-events

pub const visible_stroke: #(String, String)

visibleStroke value of pointer-events

Search Document