Bug 255337

Summary: Fix WebContent crash with null String in font-feature-values
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/39573

Description Matthieu Dubet 2023-04-12 07:20:59 PDT
Fix WebContent crash with null String in font-feature-values


Example:

  @font-feature-values "Plex Serif" { 
    @styleset { alt-a: 1; alt-g: 2; } 
    @stylistic { alternates: 1; } 
  }
  @font-feature-values "Dancing Script" { 
    @stylistic { alternates: 1; } 
  }
  .container1 * {
    font-variant-alternates: styleset(alt-a);
  }
  .container1 .script {
    font-variant-alternates: stylistic(alternates);
  }
  .inactive .container1 * {
    font-variant-alternates: normal;
  }


https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/OpenType_fonts_guide
Comment 1 Matthieu Dubet 2023-04-12 07:21:14 PDT
rdar://107758556
Comment 2 Matthieu Dubet 2023-04-12 07:46:57 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12652
Comment 3 EWS 2023-04-12 13:09:09 PDT
Committed 262880@main (3ac8b5512c4d): <https://commits.webkit.org/262880@main>

Reviewed commits have been landed. Closing PR #12652 and removing active labels.