- From: Delan Azabani via GitHub <sysbot+gh@w3.org>
- Date: Thu, 21 Jul 2022 10:15:18 +0000
- To: public-css-archive@w3.org
delan has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-text-decor] [css-pseudo] default ‘text-decoration-color’ of ‘spelling-error’ and ‘grammar-error’ == https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property > Since [spelling-error](https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-line-spelling-error) and [grammar-error](https://drafts.csswg.org/css-text-decor-4/#valdef-text-decoration-line-grammar-error) decorations are entirely UA-defined, the UA may disregard the other [sub-properties](https://drafts.csswg.org/css-cascade-5/#longhand) of [text-decoration](https://drafts.csswg.org/css-text-decor-4/#propdef-text-decoration), as well any other properties typically affecting the appearance of line decorations (such as [text-underline-position](https://drafts.csswg.org/css-text-decor-4/#propdef-text-underline-position), [color](https://drafts.csswg.org/css-color-4/#propdef-color), [stroke](https://drafts.fxtf.org/fill-stroke-3/#propdef-stroke), or [fill](https://drafts.fxtf.org/fill-stroke-3/#propdef-fill)) when rendering these decorations. However, to the extent that honoring any of these properties would be meaningful and practical given the UA’s chosen rendering, the UA should apply them as modifications to its default styling. This suggests the UA is allowed (but not required) to heed ‘text-decoration-color’ when ‘text-decoration-line’ is set to ‘spelling-error’ or ‘grammar-error’. But if the UA heeds ‘text-decoration-color’, how would it represent the default spelling/grammar decoration color (usually red or green) in [UA rules for spelling/grammar pseudos](https://drafts.csswg.org/css-pseudo-4/#highlight-ua-styles)? The initial value of ‘currentColor’ won’t work. ```css :root::spelling-error { text-decoration: <color> spelling-error; } :root::grammar-error { text-decoration: <color> grammar-error; } ``` Do we need to define [system colors](https://drafts.csswg.org/css-color-4/#css-system-colors) for these, or can the UA make up its own internal color values? (@fantasai, @frivoal, @mrego) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7522 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 21 July 2022 10:15:20 UTC