diff options
Diffstat (limited to '')
-rw-r--r-- | layout/reftests/css-ui/caret-color-01-ref.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/layout/reftests/css-ui/caret-color-01-ref.html b/layout/reftests/css-ui/caret-color-01-ref.html new file mode 100644 index 0000000000..b516c92624 --- /dev/null +++ b/layout/reftests/css-ui/caret-color-01-ref.html @@ -0,0 +1,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> |