ladybird/Tests/LibWeb/Ref/input/selection-default-link.html
Andreas Kling 3746fbf7f4 LibWeb: Use themed text selection colors
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.
2026-05-29 13:49:51 +02:00

28 lines
541 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/selection-default-link-ref.html">
<style>
body,
td {
color: #828282;
}
td {
font-size: 20px;
line-height: 1.5;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
color: #828282;
text-decoration: none;
}
</style>
<table><tr><td id="target"><a href="#">Default link selection</a></td></tr></table>
<script>
const range = document.createRange();
range.selectNodeContents(document.getElementById("target"));
getSelection().addRange(range);
</script>