<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>258948</bug_id>
          
          <creation_ts>2023-07-06 14:54:51 -0700</creation_ts>
          <short_desc>Multiple keywords for tech()</short_desc>
          <delta_ts>2025-06-16 10:17:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oliver Williams">oliverwilliams345</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ntim</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1965439</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Williams">oliverwilliams345</who>
    <bug_when>2023-07-06 14:54:51 -0700</bug_when>
    <thetext>The following code works correctly in Safari and loads an OpenType-SVG font:

    @font-face {
            font-family: &quot;ComicColor&quot;;
            src: url(&quot;ComicColor-SVG.woff2&quot;) 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: &quot;ComicColor&quot;;
            src: url(&quot;ComicColor-COLRv1.woff2&quot;) format(woff2) tech(variations, color-COLRv1),
                 url(&quot;ComicColor-SVG.woff2&quot;) 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: &quot;ComicColor&quot;;
            src: url(&quot;ComicColor-COLRv1.woff2&quot;) format(woff2) tech(color-COLRv1),
                 url(&quot;ComicColor-SVG.woff2&quot;) format(woff2) tech(color-SVG);
        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965946</commentid>
    <comment_count>1</comment_count>
    <who name="Vitor Roriz">vitor.roriz</who>
    <bug_when>2023-07-10 07:57:07 -0700</bug_when>
    <thetext>Thanks for reporting that. I think you are right.
I&apos;ve got confused by https://github.com/web-platform-tests/wpt/blob/0a2fec9de6/css/css-fonts/parsing/font-face-src-tech.html#L45 :


&gt;&gt; // Unsupported technology (for example: no browser has incremental transfer yet), might be
&gt;&gt; // dropped from the list, next component of the list should be accepted.&quot;

The list here is probably referring to the `src list` and not the list of tech() arguments. Therefore we are currently validating it if we can handle at least one tech provided for a descriptor, instead of all of them.

We are missing such a invalid test case in WPT, I&apos;ll add one and fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965955</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-10 08:55:53 -0700</bug_when>
    <thetext>&lt;rdar://problem/112020474&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965958</commentid>
    <comment_count>3</comment_count>
    <who name="Vitor Roriz">vitor.roriz</who>
    <bug_when>2023-07-10 09:14:23 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/15697</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966605</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-13 07:36:35 -0700</bug_when>
    <thetext>Committed 266032@main (165f4f7106fc): &lt;https://commits.webkit.org/266032@main&gt;

Reviewed commits have been landed. Closing PR #15697 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124001</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-06-16 10:17:43 -0700</bug_when>
    <thetext>https://github.com/web-platform-tests/wpt/pull/40950</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>