Use the page palette for default selection backgrounds instead of a hardcoded blue color. Tint opaque selection backgrounds before painting. Selected images stay visible through the overlay. Use SelectionText for default selected text and HighlightText. Authored ::selection colors still take precedence. On macOS, use a light translucent color matching other engines. Update selection and system-color baselines for the themed colors. Add macOS-specific screenshot baselines for tests whose expectations depend on system colors.
25 lines
422 B
HTML
25 lines
422 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
p {
|
|
font-size: 20px;
|
|
line-height: 1.5;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.selected-bg {
|
|
background-color: red;
|
|
}
|
|
.selected-color {
|
|
color: green;
|
|
}
|
|
.selected-both {
|
|
background-color: blue;
|
|
color: yellow;
|
|
}
|
|
</style>
|
|
|
|
<div>
|
|
<p><span class="selected-bg">Background only</span></p>
|
|
<p><span class="selected-color">Color only</span></p>
|
|
<p><span class="selected-both">Both</span></p>
|
|
</div>
|