Bug 248128

Summary: `font-variant: small-caps normal;` should be invalid syntax
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, webkit-bug-importer
Priority: P2 Keywords: InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: http://wpt.live/css/css-fonts/parsing/font-variant-invalid.html
Bug Depends on:    
Bug Blocks: 246579    

Description Tim Nguyen (:ntim) 2022-11-19 03:09:57 PST
This still properly parses in Webkit, even though it really shouldn't according to the syntax.

font-variant: normal/none are valid, but these are invalid (replace * with any valid longhand value):

- `* normal`
- `normal *`
- `normal none`
- `none normal`
- `* none`
- `none *`

css/css-fonts/parsing/font-variant-invalid.html should be extended with such testcases.
Comment 1 Radar WebKit Bug Importer 2022-11-26 03:10:16 PST
<rdar://problem/102679841>
Comment 2 Tim Nguyen (:ntim) 2023-05-26 20:40:48 PDT
https://github.com/web-platform-tests/wpt/pull/40267
Comment 3 Ahmad Saleem 2023-09-20 18:46:26 PDT
This is only failing test for InterOp 2022 (interop-2022-text) in CSS Fonts.