[csswg-drafts] [css-text-decor] [css-pseudo] text-decoration-line:: spelling-error inside ::spelling-error pseudo (and grammar) (#9233)

schenney-chromium has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-decor] [css-pseudo] text-decoration-line:: spelling-error inside ::spelling-error pseudo (and grammar) ==
It was resolved in https://github.com/w3c/csswg-drafts/issues/7522 to ignore all other text-decoration properties when the `text-decoration-line`property has value `spelling-error` or `grammar-error`.

>When ''spelling-error'' or ''grammar-error'' apply, the user agent <em>must</em> disregard the other <a>sub-properties</a> of 'text-decoration', as well any other properties typically affecting the appearance of line decorations (such as 'text-underline-position', 'color', 'stroke', or 'fill') when rendering these decorations.

A side effect of this change is that
```
::spelling-error { text-decoration-color: blue; }
```
has no effect because the default `text-decoration-line` for `::spelling-error` is `spelling-error` (as one would hope).

Same applies to `::grammar-error`.

I propose that we accept this as working as intended, and update the spec to clearly say that `::spelling-error` will only respect text decoration properties when `text-decoration-line` is present with a value other than `spelling-error` or `grammar-error`. 
```
::spelling-error {
   text-decoration-line: underline;
   text-decoration-style: wavy;
   text-decoration-color: blue;
}
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9233 using your GitHub account


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

Received on Thursday, 24 August 2023 00:18:20 UTC