NEW 151471
font-variant-position does not work if the font does not support font features
https://bugs.webkit.org/show_bug.cgi?id=151471
Summary font-variant-position does not work if the font does not support font features
Myles C. Maxfield
Reported 2015-11-19 18:13:31 PST
We need to implement synthesis in this case.
Attachments
Radar WebKit Bug Importer
Comment 1 2015-12-02 15:05:22 PST
Richard Rutter
Comment 3 2024-07-10 04:37:47 PDT
If all the characters within the element to be superscripted are available in the webfont then these should be used (this works). However if other characters are present within the sup element, then the entire string should be synthesized. As per the CSS Fonts Module Level 4 spec: Because of the semantic nature of subscripts and superscripts, when the value [of font-variant-position] is either sub or super for a given contiguous run of text, if a variant glyph is not available for all the characters in the run, simulated glyphs should be synthesized for all characters using reduced forms of the glyphs that would be used without this feature applied. This is now implemented correctly in Firefox. Test page: https://clagnut.com/sandbox/subsup.html
Richard Rutter
Comment 4 2025-02-13 23:55:50 PST
I see this bug didn't make it into Interop again. Any chance it could be prioritised nonetheless? The bug is harmful in that it removes important visual semantics implied by superscripts and subscripts.
Note You need to log in before you can comment on or make changes to this bug.