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

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