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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant