Re: [csswg-drafts] [css-pseudo-4]: How should a selected spelling error be painted? (#2850)

If ::selection is drawn over ::spelling-error, then the color of ::selection wins in case of a conflict. However, ::selection says that if a `color` isn't specified, but a background is, then we use the text’s own color. Which in this case is the spelling-error color. So I agree with @shallawa that the spelling-error would be red.

If ::selection had specified a 'color', though, it would be that color.

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

Received on Friday, 28 December 2018 20:44:55 UTC