summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-ui/text-overflow-change-color.html
blob: 8982da5eb9986c7aa14325b86dffda994a6fe6d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<title>Test ellipsis style</title>
<link rel="match" href="reference/text-overflow-change-color-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-ui-3/#ellipsing-details">
<link rel="author" href="kojii@chromium.org">
<meta name="assert" content="Changing the color of the container should also change the color of ellipsis">
<style>
div {
  color: red;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: pre;
  font-size: 50px;
  width: 5ch;
}
</style>
<body>
<div id=container>123456789</div>
<script>
document.body.offsetTop;
container.style.color = 'lime';
</script>
</body>