[csswg-drafts] Pull Request: [css-pseudo] clarify paired cascade (#6386 + #6150)

delan has just labeled a pull request from delan for https://github.com/w3c/csswg-drafts as "css-pseudo-4":

== [css-pseudo] clarify paired cascade (#6386 + #6150) ==
This patch makes edits for #6386:

* clarifies that “use” means used value (q1)
* explicitly defines highlight colors as color + background-color only (q2)
    * clarifies further that stroke-color and fill-color are *not* highlight colors
* extends paired cascade from ::selection to all highlight pseudos (q3)
* clarifies that both sets of properties in this rule are the highlight colors (q4)
* replaces “specified” with both an exact definition and an intuitive definition (q5)
* clarifies that revert exists in the rolled-back origin (q6)
* clarifies that unset always means inherit in highlight styles (q7)
* clarifies that unset and other explicit defaults exist in their declared origin (q8)
* clarifies that inherit also inherits parent’s highlight styles (@Loirooriol’s [comment](https://github.com/w3c/csswg-drafts/issues/6386#issuecomment-887858248))
* clarifies that UAs are still allowed to tweak highlight colors (@delan’s [comment](https://github.com/w3c/csswg-drafts/issues/6386#issuecomment-915771798))
    * there’s no real consensus on this one yet (see #6150 and @rego’s [comment](https://github.com/w3c/csswg-drafts/issues/6150#issuecomment-934283617))

Not all of the questions in that issue are resolved yet, so for now, consider this a prototype based on what looked like the most likely consensus to me. While the proposed text is much longer than the current text, there were *a lot* of things to clarify, so I believe at least *some* added complexity is necessary.

See https://github.com/w3c/csswg-drafts/pull/6665


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 November 2021 10:38:50 UTC