summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-face/colrv1-01-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /layout/reftests/font-face/colrv1-01-ref.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/font-face/colrv1-01-ref.html')
-rw-r--r--layout/reftests/font-face/colrv1-01-ref.html43
1 files changed, 43 insertions, 0 deletions
diff --git a/layout/reftests/font-face/colrv1-01-ref.html b/layout/reftests/font-face/colrv1-01-ref.html
new file mode 100644
index 0000000000..ef0d0d194a
--- /dev/null
+++ b/layout/reftests/font-face/colrv1-01-ref.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<meta charset=utf-8>
+<title>COLRv1 font test: comparing against CSS representation</title>
+<style>
+#ref { font: 0px serif; margin: 10px; padding: 10px; }
+#ref > div { width: 100px; height: 100px; display: inline-block; vertical-align: top; }
+span { display: inline-block; }
+.A { background: rgba(255, 0, 0, 1.0); }
+.B { background: rgba(255, 0, 0, 0.5); }
+.C { background: rgba(255, 0, 0, 0.1); }
+.D { background: linear-gradient(to right, rgb(0, 255, 0), rgb(0, 0, 255)); }
+.E { background: linear-gradient(to right, rgb(0, 255, 0) 25%, rgb(0, 0, 255) 75%); }
+.F { background: linear-gradient(to right, rgb(0, 255, 0) 25%, rgb(0, 0, 255) 75%); }
+.G { background: repeating-linear-gradient(to right, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%); }
+.H { background: repeating-linear-gradient(to right, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%, rgb(0, 255, 0) 80%); }
+.I { background: repeating-linear-gradient(to bottom, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%, rgb(0, 255, 0) 80%); }
+.J { background: radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 70.7107%); }
+.K { background: repeating-radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 70.7107%); }
+.L { background: repeating-radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0) 70.7107%); }
+.M { background: conic-gradient(rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0)); }
+.N { background: conic-gradient(rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255)); }
+.O { background: conic-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 25%, rgb(0, 255, 0), rgb(255, 0, 0)); rotate: 0.25turn; }
+.P :nth-child(1) { background: rgb(0, 0, 255); width: 100%; height: 50%; }
+.P :nth-child(2) { background: rgb(255, 0, 0); width: 50%; height: 50%; }
+.P :nth-child(3) { background: rgb(0, 255, 0); width: 50%; height: 50%; }
+.Q { background: rgba(0, 255, 0); }
+.Q :nth-child(1) { background: rgb(255, 0, 0); width: 50%; height: 50%; translate: 50% 50%; rotate: 45deg; }
+.R { background: rgba(0, 0, 255); }
+.R :nth-child(1) { background: rgb(255, 0, 0); width: 50%; height: 50%; translate: 50% 50%; transform: skew(30deg); }
+.S { background: rgba(255, 0, 0); }
+.S :nth-child(1) { background: rgb(0, 255, 0); width: 50%; height: 50%; translate: 50% 50%; transform: skew(0, 30deg); }
+.T { background: rgba(0, 255, 0); }
+.T :nth-child(1) { background: rgb(0, 0, 255); width: 50%; height: 50%; translate: 50% 50%; transform: skew(-20deg, -20deg); }
+</style>
+
+<p>COLRv1 font rendering:</p>
+<div id="ref"><div><span></span><span></span><span></span></div></div>
+
+<script>
+ref.firstChild.classList = window.location.hash.substr(1);
+document.documentElement.classList = "";
+</script>