What does “a+b+c+d” mean? Is it the same as “a + b + c + d”? I know what “+” does but is it read left to right or right to left? If “+” was instead made into “:adjacent(selector)” would it look like “a:adjacent(b):adjacent(c)…” or maybe “a:adjacent(b:adjacent(c…))”? Stacking them gets confusing as they seem different from the :xyz() style extension types.
Share
a+b+c+dmeans adelement that is immediately preceded by acelement that is immediately preceded by abelement that is immediately preceded by anaelement. The spaces do not matter here. I have no idea what:adjacentwould translate as, since that does not, to my knowledge, exist.The
delement here would be matched:But not here: