W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Previous-sibling combinator

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Fri, 17 Aug 2012 11:52:22 +0800
Message-ID: <502DBFF6.7010509@oupeng.com>
To: "Marat Tanalin | tanalin.com" <mtanalin@yandex.ru>
CC: WWW Style <www-style@w3.org>
(12/01/28 7:05), Marat Tanalin | tanalin.com wrote:
> The "-" combinator is functionally similar to existing "+"
> combinator, but selects previous-sibling element instead of
> next-sibling one.
>
> So in result we would have "+" to move forward, and "-" to move
> backward (like element.nextSibling and element.previousSibling in
> DOM, respectively).

While I think this idea makes sense, using "-" would mean that you have
to put spaces around "-". For example, compare

  x-element {} /* I am not following the Web Compoents work and I don't
                  know if the x-prefix idea is still there */

to

  x - element {}

.

I have no idea how big this concern is.


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Friday, 17 August 2012 03:52:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT