Bug 175381 - Implement the font-display attribute in SVG's <font-face>
Summary: Implement the font-display attribute in SVG's <font-face>
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-09 08:17 PDT by Myles C. Maxfield
Modified: 2022-02-12 22:26 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2017-08-09 08:17:22 PDT
1) Figure out (from the relevant standardization body) if it should be present
2) If so, implement it
Comment 1 Radar WebKit Bug Importer 2017-08-09 15:34:35 PDT
<rdar://problem/33813232>
Comment 2 Myles C. Maxfield 2017-08-10 10:00:35 PDT
The spec doesn't have this attribute. https://www.w3.org/TR/SVG11/fonts.html#FontFaceElement
Comment 3 Myles C. Maxfield 2017-08-10 12:17:34 PDT
We are the only browser to support SVG fonts in the first place.
Comment 4 Myles C. Maxfield 2017-08-10 12:26:51 PDT
This should just need to modify Source/WebCore/svg/svgattrs.in and createAttributeNameToCSSPropertyIDMap()
Comment 5 Myles C. Maxfield 2017-08-10 12:27:53 PDT
Once https://bugs.webkit.org/show_bug.cgi?id=175383 is solved, this can be tested quite easily.
Comment 6 Myles C. Maxfield 2017-10-05 16:32:20 PDT
Currently, SVGFontFaceElement::parseAttribute() parses according to CSS property grammar, not @font-face descriptor grammar, which means font-display won't work.

I don't think this is worth doing. Supporting <font-face> is only necessary for supporting legacy content, and legacy content doesn't use this new descriptor.