Skip to content

Commit 7f2c10e

Browse files
lilleschromium-wpt-export-bot
authored andcommitted
Fix crash with relative colors in @font-palette-values
Simply skip such override-colors for now and leave a TODO on how to fix it properly. Bug: 417172068 Change-Id: I8bff5a2758b23fda57f73429d4b64d843055e80e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6532438 Commit-Queue: Rune Lillesveen Reviewed-by: Dominik Röttsches Cr-Commit-Position: refs/heads/main@{#1459324}
1 parent 90767fd commit 7f2c10e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
>
2+
<title>CSS Fonts: override-colors with relative color crashing Chrometitle>
3+
<link rel="help" href="https://crbug.com/417172068">
4+
<style>
5+
@font-face {
6+
font-family: Foo;
7+
src: url(notfound.ttf);
8+
}
9+
@font-palette-values --foo {
10+
font-family: Foo;
11+
override-colors: 0 lch(from blue calc(0.5 * l) c h);
12+
}
13+
#target {
14+
font-family: Foo;
15+
font-palette: --foo;
16+
}
17+
style>
18+
<div id="target">Foodiv>

0 commit comments

Comments
 (0)