[csswg-drafts] [CSS Pseudo] Should highlights paint for Control Characters, esp. tab (#9849)

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

== [CSS Pseudo] Should highlights paint for Control Characters, esp. tab ==
I believe the spec should be explicit about which, if any, ASCII control characters should be potential targets of highlight pseudos. For reference, the CSS Text Decorations spec says "Characters belonging to the Unicode classes for control codes and unassigned characters (Cc, Cf, Cn) are skipped...". That includes tabs.

However, chromium does paint tabs for selection, and has a bug (or feature) that it will draw underlines and highlights for tab characters when used in ::selection.

I see 2 possible resolutions:
- Adopt the Text Decoration behavior for highlights and make ::selection that uses such features follow the same rules.
- Special case the tab character as a control character that text decorations and highlights do apply to.

I don't think the behavior for text decorations and highlight should be different, given that text decorations can be used as highlights.

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


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

Received on Wednesday, 24 January 2024 19:14:24 UTC