We should probably reconsider adding the previous-sibling combinator [1] to CSS since: * the subject indicator is dropped [2]; * the `:has()` function will not be available in fast profile (and therefore in CSS) [3]. Thanks. [1] https://lists.w3.org/Archives/Public/www-style/2012Jan/1245.html [2] https://lists.w3.org/Archives/Public/www-style/2014Feb/0617.html [3] http://dev.w3.org/csswg/selectors/#fast-profile 28.01.2012, 03:34, "Tab Atkins Jr." <jackalmage@gmail.com>: > 2012/1/27 Marat Tanalin <mtanalin@yandex.ru>: >> šAnd how would you write following selector using subject indicator? >> >> šš šP - UL > LI {...} > > Using the future extension to :matches() to allow complex selectors: > > :matches(!ul + p) > li {...} > > Or, if I get my way, with :has(): > > ul:has(+p) > li {...}Received on Thursday, 29 January 2015 00:35:27 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC