Closed Bug 1698495 Opened 3 years ago Closed 3 years ago

Implement the `size-adjust` descriptor for @font-face rules

Categories

(Core :: Layout: Text and Fonts, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(7 files, 3 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Currently under discussion in the CSS WG, as a generally better alternative to the advance-override descriptor that has also been proposed.

I'm currently referring to this as glyph-scale-factor, but other names are possible, e.g. font-size-override as mentioned by fantasai.

There has been some work in Chrome already to prototype this, but was dropped for now due to uncertainty about how to spec it.

Depends on D108579

According to https://lists.w3.org/Archives/Public/www-style/2021Mar/0025.html, Chromium is aiming to ship this in M91, and is asking for a CSSWG stamp of approval for Intent-to-Ship.

Summary: Implement a `glyph-scale-factor` descriptor for @font-face rules → Implement the `size-adjust` descriptor for @font-face rules
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #9209377 - Attachment is obsolete: true
Attachment #9209378 - Attachment is obsolete: true
Attachment #9209379 - Attachment is obsolete: true
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f3246c484808
Add the size-adjust descriptor to the style system. r=emilio
https://hg.mozilla.org/integration/autoland/rev/89af6ae2b87f
Add webidl support for size-adjust. r=emilio
https://hg.mozilla.org/integration/autoland/rev/aec8182ce898
Annotate webidl declarations of @font-face descriptors that are behind prefs. r=emilio
https://hg.mozilla.org/integration/autoland/rev/0d287a99e2da
Implement size-adjust font scaling in gfx/thebes font code. r=emilio
https://hg.mozilla.org/integration/autoland/rev/8ac355d20cdc
Add a simple WPT reftest for the @font-face size-adjust descriptor. r=emilio
https://hg.mozilla.org/integration/autoland/rev/0a31ac97a384
Add test for font-size-adjust property overriding size-adjust descriptor. r=emilio
https://hg.mozilla.org/integration/autoland/rev/faf491f54f8e
Add simple test for setting the sizeAdjust attribute via FontFace constructor. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28289 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot

I have added this to experimental features, BCD, and documented it on MDN.

Blocks: 1720131
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: