[css-fonts-4][css-fonts-5] Add font-synthesis-position CSS property
Categories
(Core :: Layout: Text and Fonts, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox118 | --- | fixed |
People
(Reporter: mozilla-apprentice, Assigned: jfkthame)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
A resolution was made for csswg-drafts/#7441.
[css-fonts-4][css-fonts-5] Add "font-synthesis: super"
- RESOLVED: Add font-synthesis-position as defined in https://github.com/w3c/csswg-drafts/issues/7441#issuecomment-1444461111 except 'auto' means synthesis is required (not merely allowed)
Updated•1 years ago
|
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 1•1 years ago
|
||
Updated•1 years ago
|
Assignee | ||
Comment 2•1 years ago
|
||
Just for the record, a PR to update the spec is at https://github.com/w3c/csswg-drafts/pull/9203.
Comment 4•1 years ago
|
||
Backed out for causing font-synthesis failures.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=426358164&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/01b2cb7a4a75ee76d69b0eef1f7eae96e79de8b6
Assignee | ||
Comment 6•1 years ago
|
||
Ugh, forgot the animation-type list. (Seems a shame that isn't automatically generated from the property definitions...)
Comment 9•1 years ago
|
||
bugherder |
Comment 11•1 year ago
|
||
Unless I am missing something, I feel that this should work for <sub>
& <sup>
element as well as those with the property font-variant-position
with the values of sub
& super
.
I have codepen with both these examples and it is not working as expected.
It works this way for font-variant-weight
- <strong>
& font-variant-style
- <em>
Assignee | ||
Comment 12•1 year ago
|
||
(In reply to Dave Letorey from comment #11)
No, because the <sub>
and <sup>
elements are not defined as using font-variant-position
at all; they use font-size
and vertical-align
instead. See for example https://www.w3.org/TR/CSS22/sample.html.
(In many cases, font-variant-position
might appear preferable, but the trouble is that these elements can potentially be nested, and font-variant-position
wouldn't handle that.)
Comment 13•1 year ago
|
||
(In reply to Jonathan Kew [:jfkthame] from comment #12)
(In reply to Dave Letorey from comment #11)
No, because the
<sub>
and<sup>
elements are not defined as usingfont-variant-position
at all; they usefont-size
andvertical-align
instead. See for example https://www.w3.org/TR/CSS22/sample.html.(In many cases,
font-variant-position
might appear preferable, but the trouble is that these elements can potentially be nested, andfont-variant-position
wouldn't handle that.)
Thank you that, now, makes total sense.
Updated•1 year ago
|
Comment 14•1 year ago
•
|
||
Description
•