Bug 248128 - `font-variant: small-caps normal;` should be invalid syntax
Summary: `font-variant: small-caps normal;` should be invalid syntax
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://wpt.live/css/css-fonts/parsing...
Keywords: InRadar, WPTImpact
Depends on:
Blocks: 246579
  Show dependency treegraph
 
Reported: 2022-11-19 03:09 PST by Tim Nguyen (:ntim)
Modified: 2023-09-20 18:46 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 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.