blob: fcd7e29dd97a242690b396998ede820a0d6b9c7d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tests use of currentColor in @font-palette-values</title>
<link rel="help" href="https://drafts.csswg.org/css-fonts/#font-palette-prop">
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-palette-values">
<link rel="author" title="Mike Bremford" href="https://bfo.com">
<link rel="match" href="font-palette-35-ref.html">
<style>
@font-face {
font-family: "COLR-test-font";
src: url("resources/COLR-palettes-test-font.ttf") format("truetype");
}
@font-palette-values --MyPalette {
font-family: "COLR-test-font";
override-colors: 7 currentColor;
}
div {
color: #00FF00;
font: 48px 'COLR-test-font';
font-palette: --MyPalette;
}
</style>
</head>
<body>
<div>A</div>
</body>
</html>