summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-visited/caret-color-on-visited-1-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/css-visited/caret-color-on-visited-1-ref.html')
-rw-r--r--layout/reftests/css-visited/caret-color-on-visited-1-ref.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/layout/reftests/css-visited/caret-color-on-visited-1-ref.html b/layout/reftests/css-visited/caret-color-on-visited-1-ref.html
new file mode 100644
index 0000000000..23d8e0c244
--- /dev/null
+++ b/layout/reftests/css-visited/caret-color-on-visited-1-ref.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<style>
+@font-face {
+ font-family: Ahem;
+ src: url(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');
+window.onload = function () {
+ document.fonts.ready.then(() => {
+ $div.style.height = $span.getBoundingClientRect().height + 'px';
+ });
+};
+</script>