Bug 175381
Summary: | Implement the font-display attribute in SVG's <font-face> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> |
Component: | Text | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | bfulgham, mmaxfield, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Myles C. Maxfield
1) Figure out (from the relevant standardization body) if it should be present
2) If so, implement it
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/33813232>
Myles C. Maxfield
The spec doesn't have this attribute. https://www.w3.org/TR/SVG11/fonts.html#FontFaceElement
Myles C. Maxfield
We are the only browser to support SVG fonts in the first place.
Myles C. Maxfield
This should just need to modify Source/WebCore/svg/svgattrs.in and createAttributeNameToCSSPropertyIDMap()
Myles C. Maxfield
Once https://bugs.webkit.org/show_bug.cgi?id=175383 is solved, this can be tested quite easily.
Myles C. Maxfield
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.