summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-ui/caret-color-01-ref.html
blob: b516c9262430f08fb9b32bd4c16b403425bde0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<style>
@font-face {
  font-family: Ahem;
  src: url(../fonts/Ahem.ttf);
}
div {
  font: 16px/1 Ahem;
  width: 1em;
  background: green;
}
</style>
<div><span></span></div>
<script>
let $div = document.querySelector('div');
let $span = document.querySelector('span');
$div.style.height = $span.getBoundingClientRect().height + 'px';
</script>