The Gist is a demo of of CSS selector combinators. See MDN for documentation: CSS Selectors
Usage:
content-container
. The clicked element becomes the root of the selection, and its background color becomes gray. combinators
at the left. The default combinator is the Descendant combinator (A B)
.combinator
and clicked elementPlease note: While the component tree contains both div
and span
elements, only div
elements are selected.
The Gist also demos:
The Gist is alive here