summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/font-colorization.html
blob: 252d15fc5610ef6df5f73625b9dca56892565d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Colorisation of non-color glyph should work in the presence of COLR or SVG table</title>
<link rel="help" href="https://drafts.csswg.org/css-color/#the-color-property">
<link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org">
<link rel="match" href="font-colorization-ref.html">
<style>
@font-face {
    font-family: "svg_colr";
    src: url("resources/colorization_SVG_COLR.ttf") format("truetype");
}
</style>
</head>
<body>
<!-- A glyph from a font that contains SVG or COLR tables but for which there is
  no data in the color font tables, should be colored in the text
  foreground color. -->
<div style="font: 100px/1.2 'svg_colr', fantasy; color: green;">A</div>
</body>
</html>