Skip to main content

simple_uses_state

Function simple_uses_state 

Source
pub fn simple_uses_state(s: &SimpleSelector, state: &str) -> bool
Expand description

単純セレクタ(コンパウンド 1 個)が state を参照しているか。

:not() / :is() / :where() / :nth-child(... of S) / :has() の 内側も再帰的に見る。 計算量: O(P + 入れ子の総数) — P は疑似クラス数。 :not() / :is() / :where() / :has() の内側を再帰的に辿るため、 最悪はセレクタ内の単純セレクタ総数に比例する。