Bug 255337 - Fix WebContent crash with null String in font-feature-values
Summary: Fix WebContent crash with null String in font-feature-values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-12 07:20 PDT by Matthieu Dubet
Modified: 2023-04-17 11:34 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.