- From: Marat Tanalin <mtanalin@yandex.ru>
- Date: Wed, 22 Jul 2015 01:20:45 +0300
- To: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>, Philippe Le Hegaret <plh@w3.org>
21.07.2015, 23:33, "fantasai" <fantasai.lists@inkedblade.net>: > šPrompted by plh, Tab and I just went over the Selectors 4 spec, > što figure out what's ready to polish up and send to CR and what > šlooks like it should stay in WD. Here's a list of what we propose > što keep and defer: What about ability to select previous sibling? (Like existing `+` combinator, but for previous sibling.) When it has been proposed to add previous-sibling combinator [1], Tab said that the feature is already covered by the more universal subject indicator [2] in conjunction with `:matches()` or by `:has()`. Then subject indicator has been dropped [3] in favor of `:has()`. But `:has()` was/became available only in fast/static profile (i.e. JS-only). Then Tab said that the WG is probably going to make `:has()` available in complete/dynamic profile with some restrictions (probably limitation of using only simple selectors inside `:has()`) [4]. Now the Selectors spec is close to be finalized, and `:has()` is at risk to be postponed. So what about previous-sibling selector (exactly previous-sibling selector unlike complicated universal things like `:has()`)? Thanks. [1] https://lists.w3.org/Archives/Public/www-style/2012Jan/1245.html [2] https://lists.w3.org/Archives/Public/www-style/2012Jan/1248.html [3] https://lists.w3.org/Archives/Public/www-style/2014Feb/0617.html [4] https://lists.w3.org/Archives/Public/www-style/2015Feb/0306.html
Received on Tuesday, 21 July 2015 22:21:18 UTC