- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Thu, 31 May 2018 22:09:54 +0000
- To: public-css-archive@w3.org
tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts: == [selectors] Proposal for `:event:then(:event)` selector == Copied from <https://lists.w3.org/Archives/Public/www-style/2018May/0040.html>, by @Lcfvs > Tiny proposal about a then selector, useful to mais some transitions, etc., when events are chained. > > Example : > > ``` > /* triggers when the focused ol loose the focus, if the ol is still hovered */ > ol:focus:then(:hover) { > transition: width .3ms; > } > ``` > > Useful, for example, to close a focused list, but after a possible click effect, or to show a message, when an input pass from :invalid to > :valid, etc. > > What do you think about it? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2725 using your GitHub account
Received on Thursday, 31 May 2018 22:09:57 UTC