Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset=utf-8>
<title>COLRv1 glyphs painted in the text color, in two colors at once</title>
<style>
@font-face { font-family: COLRv1Paint; src: url("COLRv1Paint.ttf"); }
div { position: absolute; left: 0; font: 40px/1 COLRv1Paint; }
#upper { top: 0; color: red; }
#lower { top: 50px; color: blue; }
</style>
<!-- Same rows in the same places as colrv1-fg-color.html, painted blue first. -->
<div id="lower">AAAA</div>
<div id="upper">AAAA</div>
<script>
document.fonts.ready.then(() => { document.documentElement.className = ""; });
</script>