A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/w3c/csswg-drafts/issues/4625 below:

[css-pseudo-4] Original color of highlight pseudo inside ::first-letter/::first-line · Issue #4625 · w3c/csswg-drafts · GitHub

Currently, if an author specifies a background color for selection highlights but does not specify a color, we use the color of the originating element.

This gets really interesting in the presence of ::first-letter or ::first-line... basically, highlighting the text changes its color, because it's now looking up the color of the paragraph element instead of the ::first-letter or ::first-line element.

Probably this behavior would be OK in the case of selections, but it's probably quite unexpected if we're handling ::spelling-error or ::grammar-error. It would mean that a spelling error in the first line would end up with the paragraph text color even if the rest of the line has its own color.

What do we want to do about this?

Issue found via @TalbotG’s proposed test active-selection-027 in web-platform-tests/wpt#20028 see testcase


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3