Bug 250906

Summary: Web Inspector: Fonts Panel: ITAL variation axis slider has value of NaN
Product: WebKit Reporter: Razvan Caliman <rcaliman>
Component: Web InspectorAssignee: Razvan Caliman <rcaliman>
Status: RESOLVED FIXED    
Severity: Normal CC: inspector-bugzilla-changes, the.constant.utopians, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 249535    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of issue
none
https://developer.apple.com/SlothCreatorBuildingDocCDocumentationInXcode.zip/bundleresources/information_property_list/uirequiresfullscreen none

Description Razvan Caliman 2023-01-20 10:22:37 PST
Created attachment 464581 [details]
Screenshot of issue

# Steps to reproduce:

- Go to https://v-fonts.com/fonts/west-var
- Inspect the sample text
- Open the Fonts sider bar panel in Web Inspector

# Expected result:
The "Italic" slider has a range from 0 to 1 with a default value of 0.

# Actual result:
The slider has a value of NaN.

# Cause
The value of font-style maps to ITAL or SLNT variation axes when available. But "font-style: normal" isn't handled for the ITAL axis.
Comment 1 Radar WebKit Bug Importer 2023-01-20 10:23:21 PST
<rdar://problem/104481453>
Comment 2 Razvan Caliman 2023-01-20 10:27:45 PST
Pull request: https://github.com/WebKit/WebKit/pull/8884
Comment 3 EWS 2023-01-25 07:02:58 PST
Committed 259351@main (c58b326609c9): <https://commits.webkit.org/259351@main>

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