[Webkit-unassigned] [Bug 258948] New: Multiple keywords for tech()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 6 14:54:51 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258948
Bug ID: 258948
Summary: Multiple keywords for tech()
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: macOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: oliverwilliams345 at gmail.com
The following code works correctly in Safari and loads an OpenType-SVG font:
@font-face {
font-family: "ComicColor";
src: url("ComicColor-SVG.woff2") format(woff2) tech(color-SVG);
}
However, the following code should load the OpenType-SVG font in Safari but instead it loads the COLRv1 font (which Safari does not support).
@font-face {
font-family: "ComicColor";
src: url("ComicColor-COLRv1.woff2") format(woff2) tech(variations, color-COLRv1),
url("ComicColor-SVG.woff2") format(woff2) tech(color-SVG);
}
>From reading the spec, it seems that tech() is meant to accept a comma-seperated list of values. Is it this that is confusing Safari and getting it to load the wrong font? When I only use one value for tech() things work as they should:
@font-face {
font-family: "ComicColor";
src: url("ComicColor-COLRv1.woff2") format(woff2) tech(color-COLRv1),
url("ComicColor-SVG.woff2") format(woff2) tech(color-SVG);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230706/5efedb50/attachment.htm>
More information about the webkit-unassigned
mailing list