Const
CSS selectors in CSSResult
type for use within css
tagged templates.
Styles the element when navigation actives the element, whether by a mouse click or a keyboard key.
This is required because browsers do not allow keyboard presses to trigger the :active
pseudo-class on elements that aren't natively interactive. So a div
with tabindex
,
while working with all the other style selectors (like :focus
), does not work for click
styles triggered via keyboard events like a native button
element does.
CSS selector strings to be used in JavaScript queries.
Styles the element when navigation actives the element, whether by a mouse click or a keyboard key.
This is required because browsers do not allow keyboard presses to trigger the :active
pseudo-class on elements that aren't natively interactive. So a div
with tabindex
,
while working with all the other style selectors (like :focus
), does not work for click
styles triggered via keyboard events like a native button
element does.
Query selector strings or CSS selectors for styling various states of navigation. Mostly necessary only for the click styles (see comment on
.click
for more details).