[Webkit-unassigned] [Bug 151471] font-variant-position does not work if the font does not support font features
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 10 04:37:47 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=151471
Richard Rutter <rich at clearleft.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rich at clearleft.com
--- Comment #3 from Richard Rutter <rich at clearleft.com> ---
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240710/c24e9bde/attachment.htm>
More information about the webkit-unassigned
mailing list