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.
18 lines
336 B
HTML
18 lines
336 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
p {
|
|
font-size: 20px;
|
|
line-height: 1.5;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.selected {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
|
|
<div>
|
|
<p><span>P</span><span class="selected">artial start</span></p>
|
|
<p><span class="selected">Full selection</span></p>
|
|
<p><span class="selected">Partial en</span><span>d</span></p>
|
|
</div>
|