Re: [csswg-drafts] [css-pseudo] [css-highlight-api] defaults and inheritance for ::spelling-error + ::grammar-error + ::highlight (#6779)

> I had written the spec text with the legacy ::selection behavior in mind, so it doesn't fit with the new [#highlight-cascade](https://drafts.csswg.org/css-pseudo-4/#highlight-cascade) behavior.

Fair enough, that makes sense. I think that proposed wording is a good start, but I think it fails to account for the special relationship between ‘color’ and ‘background-color’ (paired cascade), and suffers from the same problems as “specified by the author” does in [#highlight-cascade](https://drafts.csswg.org/css-pseudo-4/#highlight-cascade) (#6386).

[e6ec959ad9fb3](https://github.com/w3c/csswg-drafts/pull/6665/commits/e6ec959ad9fb3f55da388de39d09e05355c5fcd4) attempts to word this in a way that builds on the clarifications I’ve proposed in #6665, what do you think?

-- 
GitHub Notification of comment by delan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6779#issuecomment-972808040 using your GitHub account


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

Received on Thursday, 18 November 2021 12:10:17 UTC