Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-fonts/font-palette-relative-color-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Fonts: override-colors with relative color crashing Chrome</title>
<style>
@font-face {
font-family: Foo;
src: url(notfound.ttf);
}
@font-palette-values --foo {
font-family: Foo;
override-colors: 0 lch(from blue calc(0.5 * l) c h);
}
#target {
font-family: Foo;
font-palette: --foo;
}
</style>
<div id="target">Foo</div>