Open Bug 1796116 Opened 2 years ago Updated 2 years ago

'auto' keyword parsing support for font descriptors inside @font-face rule

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

People

(Reporter: moonira, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

Steps to reproduce:

According to spec https://www.w3.org/TR/css-fonts-4/#font-prop-desc the 'auto' keyword for 'font-weight', 'font-style' and 'font-stretch' descriptors inside @font-face rule should be supported, Firefox however does not support parsing of 'auto' keyword.

So in the attached html file, the expected result is that you should see "Font weight range: auto" in the browser, however in Firefox it is "Font weight range:".

Corresponding WPT tests 'auto' keyword inside @font-face: auto in https://wpt.fyi/results/css/css-fonts/variations/at-font-face-descriptors.html?label=experimental&label=master&aligned are also not passing in Firefox.

Actual results:

'auto' keyword does not parse in font descriptors inside @font-face rule; the attached file is showing "Font weight range:" in the browser.

Expected results:

'auto' keyword should be parsing, i.e. the attached html file should show "Font weight range: auto" in the Firefox and the corresponding WPT test should pass.

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: