diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-fonts/font-colorization.html')
-rw-r--r-- | testing/web-platform/tests/css/css-fonts/font-colorization.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-fonts/font-colorization.html b/testing/web-platform/tests/css/css-fonts/font-colorization.html new file mode 100644 index 0000000000..252d15fc56 --- /dev/null +++ b/testing/web-platform/tests/css/css-fonts/font-colorization.html @@ -0,0 +1,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> |