You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A functional notation for the descendant combinator.
//selects the d elements descendants of root nested 3 levels deep
root ..(3) d { }
//selects the y elements descendants of c nested 3 levels deep
root c ..(3) y { }
//selects the y elements descendants of c nested 3 levels deep or more
root c ..(≥3) y { }
Third proposal
A modifier which repeats the selector.
root container 3[*] element { }
//would be equivalent to
root container * * * element { }
The text was updated successfully, but these errors were encountered:
I would go for :lvl(N), because it looks like the element must be at level N. And ..(N) looks like all the elements starting from level N are selected.
@FSX very good point: a functional notation on the combinator alter the way the combinator works hence it could be interpreted as from this level or till this level instead.
I updated the example to cover these cases. On @veosotano's feedback, I removed the first proposal on the grounds that a filter needs to be global: this one can't be used with another combinator preceding the element.
I have also added a third proposal which covers the main use case.
We need something like :nth-descendant.
First proposal
The level filter.Second proposal
A functional notation for the descendant combinator.
Third proposal
A modifier which repeats the selector.
The text was updated successfully, but these errors were encountered: