You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
After web fonts were defined, and before variable fonts were invented, the CSS Font specification added powerful tooling for web designers & developers to use to create refined typography.
font-feature-settings is a CSS property that addresses the low-level plumbing for these ability. It has broad support across almost all browsers.
However, Authors are encouraged to never use font-feature-settings, and instead use font-variant-*.
This [font-feature-settings] property is a low-level feature designed to handle special cases where no other way to enable or access an OpenType font feature exists. Whenever possible, font-variant shorthand property or an associated longhand property, font-variant-ligatures, font-variant-caps, font-variant-east-asian, font-variant-alternates, font-variant-numeric or font-variant-position should be used.
Authors cannot currently follow this advice, because not all browser have implemented all of the font-variant-* properties. This is holding back typography on the web.
Specifically, these two need to be implemented in Chromium:
changed the title [-]font-variant-alternates + font-variant-position [/-][+]Typography: font-variant-alternates + font-variant-position [/+]on Nov 10, 2021
If we want to add more typography things to this, we could add support for the IC unit. It's a unit important for typesetting CJK scripts. 1ic is the full width glyph in the element’s font, as represented by the “水”.
I think it would be useful to decide which are the highest priority areas in this proposal. Including all the specs/properties mentioned seems like it would end up with something that's too broad, and runs the risk of different implementations picking different subsets to prioritise, so not improving the actual interop. Is there data we can use to help narrow the scope to the features with highest impact?
@jensimmons regarding the advice to use font-variant-alternates and font-variant-position instead of font-feature-settings, do you know if it's currently possible to use font-feature-settings to achieve the desired effect?
If so, I see that usage of font-feature-settings is quite high, and I wonder if some of that is really working around lack of support for font-variant-*. That would be compelling evidence of a need. If someone can suggest things to search for in httparchive, I could give that a try.
I agree. Does anyone have suggestions for another name for this bucket? Or could it make sense to slot encodings under the webcompat bucket, if it has caused any broken sites? @achristensen07 WDYT?
From the discussion earlier, @foolip was going to remove many of the tests in encoding, given most already pass. I'd added everything that followed from "including CJK text encoding", not limiting it to the parts particularly mentioned.
These are the tests which don't pass everywhere, which is 8 tests rather than 1209 tests. However, even among those 8 many of those are any.js tests, and it's unclear there's any value to running those in different environments. Do we just want to go down to these five tests?
web-platform-tests/wpt-metadata#2388 does duly remove the vast majority of the tests (down to six, keeping decode & encode tests for each of three encodings, despite gb18030 encode being interop already).
Activity
[-]Font features & variations[/-][+]font-variant-*[/+][-]font-variant-*[/-][+]font-variant-alternates + font-variant-position [/+][-]font-variant-alternates + font-variant-position [/-][+]Typography: font-variant-alternates + font-variant-position [/+]jensimmons commentedon Nov 10, 2021
If we want to add more typography things to this, we could add support for the IC unit. It's a unit important for typesetting CJK scripts.
1icis the full width glyph in the element’s font, as represented by the “水”.jensimmons commentedon Nov 10, 2021
Also, hanging punctuation:
https://drafts.csswg.org/css-text-3/#hanging-punctuation-property
https://developer.mozilla.org/en-US/docs/Web/CSS/hanging-punctuation
Tests
jensimmons commentedon Nov 10, 2021
Also, Initial Letter
https://drafts.csswg.org/css-inline/#sizing-drop-initials
https://developer.mozilla.org/en-US/docs/Web/CSS/initial-letter
jensimmons commentedon Nov 10, 2021
jfkthame commentedon Nov 11, 2021
If you're thinking of improving support (and interop) for text in CJK scripts, can I propose supporting the Segment Break Transformation rules, which have the potential to make CJK authors' lives considerably better:
https://drafts.csswg.org/css-text-3/#line-break-transform
jgraham commentedon Nov 11, 2021
I think it would be useful to decide which are the highest priority areas in this proposal. Including all the specs/properties mentioned seems like it would end up with something that's too broad, and runs the risk of different implementations picking different subsets to prioritise, so not improving the actual interop. Is there data we can use to help narrow the scope to the features with highest impact?
jensimmons commentedon Nov 15, 2021
Tests for Segment Break Transformation
Link Chromium bugs for font-variant-alternates/position
Link Chromium bugs for font-variant-alternates/position
foolip commentedon Nov 22, 2021
The Chromium bugs for
font-variant-alternatesandfont-variant-positionare here:https://bugs.chromium.org/p/chromium/issues/detail?id=716567
https://bugs.chromium.org/p/chromium/issues/detail?id=1212668
@jensimmons regarding the advice to use
font-variant-alternatesandfont-variant-positioninstead offont-feature-settings, do you know if it's currently possible to usefont-feature-settingsto achieve the desired effect?If so, I see that usage of
font-feature-settingsis quite high, and I wonder if some of that is really working around lack of support for font-variant-*. That would be compelling evidence of a need. If someone can suggest things to search for in httparchive, I could give that a try.Link Chromium bugs for font-variant-alternates/position (#13681)
13 remaining items
[-]Typography: font-variant-alternates + font-variant-position [/-][+]Typography bucket[/+]foolip commentedon Dec 16, 2021
@gsnedders said on the Matrix channel:
I agree. Does anyone have suggestions for another name for this bucket? Or could it make sense to slot encodings under the webcompat bucket, if it has caused any broken sites? @achristensen07 WDYT?
karlcow commentedon Dec 17, 2021
What about "Font Parametrization bucket"?
foolip commentedon Dec 20, 2021
@karlcow https://encoding.spec.whatwg.org/ doesn't really fit well under that banner either. But @annevk suggested just "text" which I think would work.
gsnedders commentedon Dec 20, 2021
I've labelled them as
interop-2022-textbased on @annevk's suggestion, but I'm by no means wedded to that name.foolip commentedon Jan 10, 2022
Thanks @gsnedders! It would be great if someone from each browser engine team can look over
interop-2022-textand comment if there are any issues.jfkthame commentedon Jan 10, 2022
The
font-variantdescriptor (as distinct from thefont-variantproperty) was dropped from CSS Fonts (as noted at https://drafts.csswg.org/css-fonts-4/#changes-2018-09-20), which means a few of the tests currently listed are not valid. At first glance, this affects font-variant-05.xht, font-variant-06.xht, and font-variant-descriptor-01.html.gsnedders commentedon Jan 13, 2022
From the discussion earlier, @foolip was going to remove many of the tests in
encoding, given most already pass. I'd added everything that followed from "including CJK text encoding", not limiting it to the parts particularly mentioned.These are the tests which don't pass everywhere, which is 8 tests rather than 1209 tests. However, even among those 8 many of those are any.js tests, and it's unclear there's any value to running those in different environments. Do we just want to go down to these five tests?
gsnedders commentedon Jan 13, 2022
web-platform-tests/wpt-metadata#2388 does duly remove the vast majority of the tests (down to six, keeping decode & encode tests for each of three encodings, despite gb18030 encode being interop already).
jensimmons commentedon Feb 17, 2022
For reference, this is what we debated and decided.