CSS/Selektoren/Kombinator/Referenz-Kombinator
Aus SELFHTML-Wiki
< CSS | Selektoren
Der Referenz-Kombinator (reference combinator) besteht aus zwei Schrägstrichen mit einem intervening CSS qualified name, und trennt zwei Selektoren, z. B. A /attr/ B.
Beispiel
label:matches(:hover, :focus) /for/ input, /* association by "for" attribute */
label:matches(:hover, :focus):not([for]) input { /* association by containment */
box-shadow: yellow 0 0 10px;
}
input
-Element, wenn das zugeordnetelabel
-Element imfocus
oderhover
ist.