Bug 151493

Summary: Alias "system-ui" for the System font name
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: 50167214, fred.wang, joepeck, jonlee, mathias, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 229131    
Attachments:
Description Flags
Patch
none
Patch
none
Patch thorton: review+

Timothy Hatcher
Reported 2015-11-20 07:58:59 PST
Per W3C minutes: "Resolved: Change system to system-ui in Fonts 4" https://www.w3.org/blog/CSS/2015/11/19/minutes-telecon-267/
Attachments
Patch (35.99 KB, patch)
2017-02-12 03:05 PST, Jon Lee
no flags
Patch (58.20 KB, patch)
2017-02-12 16:22 PST, Jon Lee
no flags
Patch (60.33 KB, patch)
2017-02-24 01:54 PST, Jon Lee
thorton: review+
Radar WebKit Bug Importer
Comment 1 2015-11-20 07:59:11 PST
Myles C. Maxfield
Comment 2 2015-11-20 10:43:04 PST
The old name can't stop working.
Jon Lee
Comment 3 2017-02-12 03:05:20 PST
Jon Lee
Comment 4 2017-02-12 03:06:06 PST
submitted for EWS.
Jon Lee
Comment 5 2017-02-12 16:18:53 PST
We never supported "system", so removing that from the title.
Jon Lee
Comment 6 2017-02-12 16:22:26 PST
Myles C. Maxfield
Comment 7 2017-02-13 15:09:58 PST
Comment on attachment 301322 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301322&action=review What about styling list boxes? IIRC those are styled with CSS which means we would need somewhere to specify the system font. This is the bug I was going to use for the expansion behavior to make "system-ui" expand to many fonts for the CT cascade list. If this one is just for the single font, do we have another but for that larger task? > Source/WebCore/css/WebKitFontFamilyNames.in:8 > +systemUiFamily="-webkit-system-ui" Why is this prefixed? We never shipped with -webkit-system-ui and we generally want to avoid unnecessary prefixes.
Jon Lee
Comment 8 2017-02-24 01:10:37 PST
Comment on attachment 301322 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301322&action=review >> Source/WebCore/css/WebKitFontFamilyNames.in:8 >> +systemUiFamily="-webkit-system-ui" > > Why is this prefixed? We never shipped with -webkit-system-ui and we generally want to avoid unnecessary prefixes. This file is used to generate a .cpp file that contains the symbols. I don't think the string is surfaced anywhere.
Jon Lee
Comment 9 2017-02-24 01:50:15 PST
(In reply to comment #7) > Comment on attachment 301322 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=301322&action=review > > What about styling list boxes? IIRC those are styled with CSS which means we > would need somewhere to specify the system font. It uses "-webkit-small-control". > This is the bug I was going to use for the expansion behavior to make > "system-ui" expand to many fonts for the CT cascade list. If this one is > just for the single font, do we have another but for that larger task? > Filed 168827.
Jon Lee
Comment 10 2017-02-24 01:54:05 PST
Jon Lee
Comment 11 2017-02-24 01:54:42 PST
Removed unneeded changes to FontGenericFamilies, and added Web Inspector support.
Tim Horton
Comment 12 2017-02-24 18:00:59 PST
Comment on attachment 302660 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=302660&action=review > Source/WebCore/ChangeLog:32 > +2017-02-12 Jon Lee <jonlee@apple.com> Double changelog. > Source/WebInspectorUI/UserInterface/External/CodeMirror/css.js:666 > - "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table", > + "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", Joe says not to modify this file, but instead file a bug on the upstream project.
Jon Lee
Comment 13 2017-02-24 18:09:32 PST
Frédéric Wang (:fredw)
Comment 14 2021-08-16 01:54:44 PDT
(In reply to Jon Lee from comment #8) > Comment on attachment 301322 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=301322&action=review > > >> Source/WebCore/css/WebKitFontFamilyNames.in:8 > >> +systemUiFamily="-webkit-system-ui" > > > > Why is this prefixed? We never shipped with -webkit-system-ui and we generally want to avoid unnecessary prefixes. > > This file is used to generate a .cpp file that contains the symbols. I don't > think the string is surfaced anywhere. I checked the three places where you actually used the symbol. Two of them seem dead code since the font-family names in font and @font-face parsing don't actually create a CSS ID value for system-ui. The third one in compute style is web-exposed, see "Serialization of prefixed -webkit-<generic-family>" in https://w3c-test.org/css/cssom/font-family-serialization-001.html (set kGenericFontFamilyKeywords=["system-ui"] to test it).
Note You need to log in before you can comment on or make changes to this bug.