[wpt-sync] Sync PR 26487 - Only do blending for ::selection background for replaced elements
Categories
(Core :: Layout: Generated Content, Lists, and Counters, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 26487 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/26487
Details from upstream follow.
b'Rune Lillesveen <futhark@chromium.org>' wrote:
Only do blending for ::selection background for replaced elements
We did a BlendWithWhite() to not have custom selection backgrounds fully
obscure replaced content like images. But, we also did that blending for
text which means the author could not fully control the ::selection
background. Instead, only do this blending for replaced content. This is
in line with what Firefox does and what the spec says[1].The blending is still done on the UA default background color for both
text and replaced content in LayoutTheme.[1] https://drafts.csswg.org/css-pseudo-4/#highlight-replaced
Bug: 1018450
Change-Id: Ibb2c63d549a21706a511bbb47ff4c686b246314b
Reviewed-on: https://chromium-review.googlesource.com/2532555
WPT-Export-Revision: 0d2c47f383f690d7f2734f7e7e58d15f6160fa53
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=af01253d2bbc3df6efe1338d676980008b8a6679
Assignee | ||
Comment 2•4 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=6a66188a340a853c40e0c80d3a393c186fe1feba
Assignee | ||
Comment 3•4 years ago
|
||
CI Results
Ran 14 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/984d1dfaba90 [wpt PR 26487] - Only do blending for ::selection background for replaced elements, a=testonly
Comment 5•4 years ago
|
||
bugherder |
Description
•