W3C home > Mailing lists > Public > www-style@w3.org > May 2018

[PROPOSAL] :event:then(:event, ...) selector

From: Michaël Rouges <michael.rouges@gmail.com>
Date: Mon, 28 May 2018 20:35:22 +0200
Message-ID: <CAMNVKQG-_mHC6PTKWd0zUiNOemh5fPFcHM7BLx2NxsaOF9D48g@mail.gmail.com>
To: www-style list <www-style@w3.org>
Hi all,

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,

What do you think about it?

Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
Received on Monday, 28 May 2018 18:35:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:10 UTC