Bug 186343 - font-variant-east-asian accepts invalid values
Summary: font-variant-east-asian accepts invalid values
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-06 03:58 PDT by Eric Willigers
Modified: 2022-07-15 13:19 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 Eric Willigers 2018-06-06 03:58:15 PDT
Spec:
https://drafts.csswg.org/css-fonts-3/#propdef-font-variant-east-asian
Value:	normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]
<east-asian-variant-values> = [ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]
<east-asian-width-values>   = [ full-width | proportional-width ]

Test case:
https://jsfiddle.net/ericwilligers/m6aLhzb3/

The following should each be rejected:
  'jis83 jis90'
  'full-width proportional-width'
  'jis90 proportional-width ruby full-width jis83'

WebKit currently serializes these as
  'jis90'
  'proportional-width'
  'jis83 full-width ruby'

i.e. it ignores all but the last of the east-asian-variant-values, and all but the last of the east-asian-width-values.
Comment 1 Brent Fulgham 2022-07-15 13:19:00 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.