Bug 151471
Summary: | font-variant-position does not work if the font does not support font features | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | jdaggett, jonlee, mmaxfield, phiw2, rich, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 149779 |
Myles C. Maxfield
We need to implement synthesis in this case.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/23732338>
John Daggett
gecko bug for this:
https://bugzilla.mozilla.org/show_bug.cgi?id=1024804
reftests (see subsuper*):
http://hg.mozilla.org/mozilla-central/file/tip/layout/reftests/font-features
Richard Rutter
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
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.