Re: [selectors4][css-syntax] Pseudo-elements vs. combinators

My current thought on this would be "->" or "=>", because the combinator is 
a concept similar to mapping an element to a set of elements (if you read 
from left to right, like web authors do):

    #some-element -> shadow-tree -> .some-elements { ... }
    #some-element -> shadow-full-tree -> .some-elements { ... }

if we want to retroactively express current combinators:

    #some-element -> descendants -> .some-elements { ... } // ( )
    #some-element -> children -> .some-elements { ... } // (>)
    #some-element -> next-sibling -> .some-elements { ... } // (+)
    #some-element -> next-siblings -> .some-elements { ... } // (~)

Best regards,
François



________________________________________________________
[off-topic-post-scriptum]

because some of us like being crazy, we could even allow the reverse 
combinator syntax like in

    .some-elements {
        color: blue;
        & <- next-sibling <- .some-other-elements {
            color: red;
        }
        & -> next-sibling -> .some-different-elements {
            color: green;
        }
    }

aka

    .some-elements { color: blue }
    .some-other-elements + .some-elements { color: red }
    .some-elements + .some-different-elements { color: green } 

Received on Wednesday, 5 February 2014 23:52:36 UTC