Skip to main content

Supported CSS selector

This document provides the list of CSS selectors that are available in KurocoEdge.

PatternRepresents
*any element
Eany element of type E
E:nth-child(n)an E element, the n-th child of its parent
E:first-childan E element, first child of its parent
E:nth-of-type(n)an E element, the n-th sibling of its type
E:first-of-typean E element, first sibling of its type
E:not(s)an E element that does not match either compound selector s
E.warningan E element belonging to the class warning
E#myidan E element with ID equal to "myid"
E[foo]an E element with a foo attribute
E[foo="bar"]an E element whose foo attribute value is exactly equal to "bar"
E[foo="bar" i]an E element whose foo attribute value is exactly equal to any (ASCII-range) case-permutation of "bar"
E[foo="bar" s]an E element whose foo attribute value is exactly and case-sensitively equal to "bar"
E[foo~="bar"]an E element whose foo attribute value is a list of whitespace-separated values, one of which is exactly equal to "bar"
E[foo^="bar"]an E element whose foo attribute value begins exactly with the string "bar"
E[foo$="bar"]an E element whose foo attribute value ends exactly with the string "bar"
E[foo*="bar"]an E element whose foo attribute value contains the substring "bar"
E[foo|=“en”]an E element whose foo attribute value is a hyphen-separated list of values beginning with "en"
E Fan F element descendant of an E element
E > Fan F element child of an E element

Support

If you have any other questions, please contact us or check out Our Discord Community.