summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/highlight-painting-005-crash.html
blob: 3f93fc3cbe4c7459cad625b0d363c5cdc6d130c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html><meta charset="utf-8">
<title>CSS Pseudo-Elements Test: highlight painting with display:contents</title>
<link rel="author" name="Delan Azabani" href="mailto:dazabani@igalia.com">
<link rel="help" href="https://crbug.com/1429198">
<meta name="assert" value="Checks that highlight painting does not crash when the originating element has decorations that are ineffective due to ‘display’ being ‘contents’.">
<style>
    body { display: contents; text-decoration: underline; }
    ::selection { /* force full highlight overlay painting */ text-decoration: line-through; }
</style>
test
<script>
    document.execCommand("selectAll");
</script>