4 ms·
Right. I get it. Basically an infix notation. Seems inconsistent with the rest of CSS.
by chrisbroadfoot 15y ago
Right. I get it. Basically an infix notation. Seems inconsistent with the rest of CSS.
- driax 15y agoWell every other operator is infix, so it's not really that inconsistent. " " (space) selectes descendents, ">" selects children, "+" selectes next-siblings and so on. The weird feeling of "/{attr}/" is probably just that the operator is variabel on the name of the attribute, which can't be avoided by any syntax (given that is part of the needed semantics).
- masklinn 15y ago> Seems inconsistent with the rest of CSS. Not really, although it's a bit weird the `//` operator is a relation (like the space, or `>`). It "just" works sideways (and potentially upwards) instead of selecting strictly downwards.