summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text-decor/text-decoration-color-selection-pseudo-01.html
blob: 0df1d477ef72b6ec521bb7b91eeb4531fc435a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: CSS3 text-decoration-color when |::selection| and another pseudo style exists</title>
<meta name="assert" content="When selected, text decorations apply the selection color when other pseudo styles are present">
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#text-decoration-color-property">
<link rel="help" href="https://www.w3.org/TR/css-pseudo-4/#highlight-styling">
<link rel="match" href="reference/text-decoration-color-selection-pseudo-01-ref.html">
<style>
    p::first-line {
        text-decoration: underline;
	}
    p::selection {
        color: green;
    }
</style>
</head>
<body>
    <p>
      Underlined, and green when selected.
    </p>
    <script>
      document.execCommand("SelectAll")
    </script>
</body>
</html>