Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more font- CSS properties #496

Merged
merged 11 commits into from
Oct 12, 2017
87 changes: 87 additions & 0 deletions css/properties/font-language-override.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"css": {
"properties": {
"font-language-override": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-language-override",
"support": {
"webview_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
"chrome": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"edge": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false: no info at all about this around Edge, so this is a rather safe bet.

},
"edge_mobile": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"firefox": [
{
"version_added": "34"
},
{
"version_added": "24",
"version_removed": "34",
"flag": {
"type": "preference",
"name": "layout.css.font-features.enabled",
"value_to_set": "true"
}
},
{
"prefix": "-moz-",
"version_added": "4"
}
],
"firefox_android": [
{
"version_added": "34"
},
{
"version_added": "24",
"version_removed": "34",
"flag": {
"type": "preference",
"name": "layout.css.font-features.enabled",
"value_to_set": "true"
}
},
{
"prefix": "-moz-",
"version_added": "4"
}
],
"ie": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"ie_mobile": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"opera": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"opera_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"safari": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"safari_ios": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
72 changes: 72 additions & 0 deletions css/properties/font-size-adjust.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"css": {
"properties": {
"font-size-adjust": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-size-adjust",
"support": {
"webview_android": {
"version_added": null
},
"chrome": {
"version_added": "43",
"flag": {
"type": "preference",
"name": "Enable experimental Web Platform features"
}
},
"chrome_android": {
"version_added": null
},
"edge": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found no info about this been enabled in Edge. And caniuse says false.

false.

},
"edge_mobile": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

},
"firefox": [
{
"version_added": "3",
"notes": "Before Firefox 40, <code>font-size-adjust: 0</code> was incorrectly interpreted as <code>font-size-adjust: none</code> (<a href='https://bugzil.la/1144885'>bug 1144885</a>)."
},
{
"version_added": "1",
"notes": "Before Firefox 3, <code>font-size-adjust</code> was supported on Windows only."
}
],
"firefox_android": {
"version_added": "4"
},
"ie": {
"version_added": false
},
"ie_mobile": {
"version_added": null
},
"opera": {
"version_added": "30",
"flag": {
"type": "preference",
"name": "Enable experimental Web Platform features"
}
},
"opera_android": {
"version_added": null
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": null
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
114 changes: 114 additions & 0 deletions css/properties/font-size.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"css": {
"properties": {
"font-size": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-size",
"support": {
"webview_android": {
"version_added": "1"
},
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "1"
},
"edge": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"edge_mobile": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"firefox": {
"version_added": "1"
},
"firefox_android": {
"version_added": "4"
},
"ie": {
"version_added": "5.5"
},
"ie_mobile": {
"version_added": "6"
},
"opera": {
"version_added": "7"
},
"opera_android": {
"version_added": "6"
},
"safari": {
"version_added": "1"
},
"safari_ios": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
},
"rem_values": {
"__compat": {
"description": "Rem values",
"support": {
"webview_android": {
"version_added": "4.1"
},
"chrome": {
"version_added": "31"
},
"chrome_android": {
"version_added": "42"
},
"edge": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"edge_mobile": {
"version_added": "12"
},
"firefox": {
"version_added": "31",
"notes": [
"Before Firefox 57, animations using em units are not affected by changes to the <code>font-size</code> of the animated element's parent (<a href='https://bugzil.la/1254424'>bug 1254424</a>).",
"Before Firefox 57, some language settings' inherited <code>font-size</code> is smaller than expected (<a href='https://bugzil.la/1391341'>bug 1391341</a>)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extraneous '

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intended a plural possessive here (i.e. the inherited font-size of the language setting). Fixed a missing period though.

Also, now that I think about it, should these notes apply to the mobile Firefox as well?

]
},
"firefox_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

31

},
"ie": [
{
"version_added": "11"
},
{
"partial_implementation": true,
"version_added": "9",
"version_removed": "10"
}
],
"ie_mobile": {
"version_added": "10"
},
"opera": {
"version_added": "28"
},
"opera_android": {
"version_added": "12"
},
"safari": {
"version_added": "7"
},
"safari_ios": {
"version_added": "4.1"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little suspicious of this appearing on iOS so many versions before desktop, but then again I don't know how iOS and macOS version numbers line up, exactly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I would set true.

}
}
}
}
}
}
}
}
57 changes: 57 additions & 0 deletions css/properties/font-stretch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"css": {
"properties": {
"font-stretch": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-stretch",
"support": {
"webview_android": {
"version_added": false
},
"chrome": {
"version_added": "48"
},
"chrome_android": {
"version_added": null
},
"edge": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"edge_mobile": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"firefox": {
"version_added": "9"
},
"firefox_android": {
"version_added": "9"
},
"ie": {
"version_added": "9"
},
"ie_mobile": {
"version_added": null
},
"opera": {
"version_added": "35"
},
"opera_android": {
"version_added": false
},
"safari": {
"version_added": false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
"safari_ios": {
"version_added": false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would set it to null

}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
59 changes: 59 additions & 0 deletions css/properties/font-style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"css": {
"properties": {
"font-style": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-style",
"support": {
"webview_android": {
"version_added": "1"
},
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

},
"edge": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"edge_mobile": {
"version_added": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12

},
"firefox": {
"version_added": "1",
"notes": "Before Firefox 44, <code>oblique</code> was not distinguished from <code>italic</code>."
},
"firefox_android": {
"version_added": "4",
"notes": "Before Firefox 44, <code>oblique</code> was not distinguished from <code>italic</code>."
},
"ie": {
"version_added": "4"
},
"ie_mobile": {
"version_added": "6"
},
"opera": {
"version_added": "7"
},
"opera_android": {
"version_added": "6"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another mobile-before-desktop case that I was suspicious of. Is it documented anywhere when the various mobile/desktop browsers get their version numbers synced up? I think Firefox, Chrome, and Opera do this at different versions, but I don't know when.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This discrepency is correct: see http://www.opera.com/docs/history/presto/ and Opera Mobile history on wikipedia.

These are the first releases supporting the Presto engine.

},
"safari": {
"version_added": "1"
},
"safari_ios": {
"version_added": "1"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}