wpt / css / css-fonts / font-palette-relative-color-crash.html

Status: PASS | Duration: 2ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi

/css/css-fonts/font-palette-relative-color-crash.html

<!DOCTYPE html>
<title>CSS Fonts: override-colors with relative color crashing Chrome</title>
<link rel="help" href="https://crbug.com/417172068">
<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>