Bug 134332 - WebKit Lacking font-feature-settings Support
Summary: WebKit Lacking font-feature-settings Support
Status: RESOLVED DUPLICATE of bug 147722
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Normal
Assignee: Myles C. Maxfield
URL: https://www.dropbox.com/s/4qs9hxh10iq...
Keywords: InRadar
Depends on:
Blocks: 63796
  Show dependency treegraph
 
Reported: 2014-06-25 20:55 PDT by Daniel Eden
Modified: 2015-08-18 23:37 PDT (History)
12 users (show)

See Also:


Attachments
Screenshot of expected/produced result (526.39 KB, image/png)
2014-06-25 20:56 PDT, Daniel Eden
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Eden 2014-06-25 20:55:32 PDT
Setting font-feature-settings values in CSS seems to be read and accepted by Safari/WebKit, yet renders as though the value is null.

In the attached screenshot, Chrome’s rendering is the correct and expected result for the below CSS. The right-hand result is the most recent iOS WebKit, though the result is the same in Safari 7, Safari 8, and WebKit nightly (all on OS X 10.9/.10)

Tested CSS (zipped in Dropbox URL):

```
html {
  font-feature-settings: "frac" 1, "kern" 1, "liga" 1, "dlig" 1;
}

h1 {
  font-feature-settings: "frac" 1, "kern" 1, "liga" 1, "dlig" 1, "smcp" 1;
}
```
Comment 1 Daniel Eden 2014-06-25 20:56:27 PDT
Created attachment 233872 [details]
Screenshot of expected/produced result
Comment 2 Benjamin Poulain 2014-06-25 21:40:44 PDT
I am unfamiliar with font-feature-settings. It looks like all the code is there to parse it and resolve the style, but it looks like FontPlatformData ignores the values.

We should consider removing "font-feature-settings" if nobody implements it.
Comment 3 diebuche 2014-09-02 03:49:53 PDT
All major browsers now support font-feature-settings. Webkit is the only engine lacking it (while actually pretending to handle it, but in fact simply ignoring it)
Comment 4 Radar WebKit Bug Importer 2014-09-02 10:43:33 PDT
<rdar://problem/18201710>
Comment 5 Simon Fraser (smfr) 2014-09-02 10:43:55 PDT
http://dev.w3.org/csswg/css-fonts/#font-rend-desc
Comment 6 Oli Studholme 2015-08-18 19:52:51 PDT
Browser support information for each aspect of font-feature-settings is available on The State of Web Type:
http://www.stateofwebtype.com/

e.g. for Small Capitals (font-feature-settings: "smcp"): http://www.stateofwebtype.com/#Small%20Capitals%20(smcp)
Comment 7 Myles C. Maxfield 2015-08-18 23:37:33 PDT

*** This bug has been marked as a duplicate of bug 147722 ***