Class Selectors

java.lang.Object
org.eclipse.e4.ui.css.core.impl.engine.selector.Selectors

public final class Selectors extends Object
Internal CSS selector AST.

The engine historically exposed W3C SAC selectors (org.w3c.css.sac.Selector and friends) and matched against them through a hierarchy of vendored Batik wrapper classes under impl/sac/*. This package replaces both with a small set of records that the engine owns end to end. The W3C SAC types stay only as long as the parser still emits them; a translator turns the SAC selector tree produced by the Batik SAC parser into one of these records before it reaches the engine matcher.

Specificity follows CSS 2.1: 100 per id, 10 per class / attribute / pseudo-class, 1 per element, 0 for the universal selector. Combinators sum the specificity of their operands; selector lists report the maximum specificity over their alternatives.