fune/testing/web-platform/tests/css/css-pseudo/target-text-009.html
Stephen Chenney f3cc900221 Bug 1864250 [wpt PR 43091] - Allow overlapping Text Fragments, a=testonly
Automatic update from web-platform-tests
Allow overlapping Text Fragments

Recent changes in document marker handling have enabled support
for text fragments that overlap. Make it happen by removing the
check for overlap in the annotation code and resolving overlap
when a marker is added.

Bug: 1327370
Change-Id: I3d7c28af0ce0c598f4d142e3ec52f0fe82e0c838
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5021449
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: David Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1224672}

--

wpt-commits: f2bfa70ce44358e80fe70061af71ce2b427aefa0
wpt-pr: 43091
2023-11-22 12:51:15 +00:00

18 lines
686 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: ::target-text color rendering - overlap targets</title>
<link rel="author" title="Stephen Chenney (Igalia)" href="mailto:schenney@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-target-text">
<link rel="match" href="target-text-five-words-ref.html">
<style>
p::target-text {
color: darkgrey;
background-color: orange;
}
</style>
<p>PASS if</p>
<p>"<span style="color:darkgrey;background:orange">match me and me</span>"</p>
<p>is rendered dark grey on an orange background.</p>
<script>
window.location.hash = "#:~:text=match%20me&text=me%20and%20me";
</script>