W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

Re: [csswg-drafts] [selectors-4] Issue 11: Introduce pseudo-class matching when user changed the value of an input (#1533)

From: Zoli Szabó via GitHub <sysbot+gh@w3.org>
Date: Sat, 08 Dec 2018 08:06:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-445441027-1544256403-sysbot+gh@w3.org>
Given the above linked [dirty value](https://html.spec.whatwg.org/#concept-fe-dirty), IMHO the best name for this pseudo-class would be **`:dirty`**.

The [HTML Live Standard](https://html.spec.whatwg.org/) defines the dirty flag as
> `input` and `textarea` elements have a dirty value flag. This is used to track the interaction between the value and default value. If it is false, value mirrors the default value. If it is true, the default value is ignored.

while `select` elements have the [concept of dirtiness](https://html.spec.whatwg.org/#concept-option-dirtiness) on their `option` descendants:
> The dirtiness of an `option` element is a boolean state, initially false. It controls whether adding or removing the `selected` content attribute has any effect.

In this case dirtiness should bubble up from the `option` elements to their parent `select` element.

-- 
GitHub Notification of comment by zoliszabo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1533#issuecomment-445441027 using your GitHub account
Received on Saturday, 8 December 2018 08:06:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC