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

Documenting the titlebar-area-* env variables #14035

Merged
merged 6 commits into from
Jan 12, 2022
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions css/properties/custom-property.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,109 @@
"standard_track": true,
"deprecated": false
}
},
"safe-area-inset": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you mind expanding these to separate features for each keyword? (See my other comments first, however, to simplify the copy-and-paste.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I see, so that they each show up individually in the compat tables. Makes sense.

"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/env()",
"spec_url": "https://drafts.csswg.org/css-env/#safe-area-insets",
"description": "Safe area inset variables <code>safe-area-inset-top</code>, <code>safe-area-inset-right</code>, <code>safe-area-inset-bottom</code>, and <code>safe-area-inset-left</code>",
"support": {
"chrome": {
"version_added": "69"
},
"chrome_android": {
"version_added": "69"
},
"edge": {
"version_added": "79"
},
"firefox": {
"version_added": "65"
},
"firefox_android": {
"version_added": "65"
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "56"
},
"opera_android": {
"version_added": "48"
},
"safari": {
"version_added": "11"
},
"safari_ios": {
"version_added": "11"
},
"samsunginternet_android": {
"version_added": "10.0"
},
"webview_android": {
"version_added": "69"
}
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"titlebar-area": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some goes for these keywords

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/env()",
"spec_url": "https://wicg.github.io/window-controls-overlay/#title-bar-area-env-variables",
"description": "Window Controls Overlay variables <code>titlebar-area-x</code>, <code>titlebar-area-y</code>, <code>titlebar-area-width</code>, and <code>titlebar-area-height</code>",
"support": {
"chrome": {
"version_added": "92",
"notes": "Linux support was added in 93."
Copy link
Collaborator

Choose a reason for hiding this comment

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

OS limitations like this require partial_implementation. See https://github.com/mdn/browser-compat-data/blob/main/docs/data-guidelines.md#operating-system-limitations-imply-partial_implementation In this case it means that you'll need two support statements:

  1. From Version 93, no notes or partial.
  2. From version 92 to 93, with a note and partial.

Also, typically, notes are written in the present tense (as if from the perspective of the version(s) to which it applies). Something like this: "Before version 93, Linux is unsupported."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Awesome. Thanks for the tip. Now I know how to do this properly.

},
"chrome_android": {
"version_added": "92",
"notes": "Linux support was added in 93."
},
"edge": {
"version_added": "92",
"notes": "Linux support was added in 93."
},
"firefox": {
"version_added": false
},
"firefox_android": {
"version_added": false
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "78"
},
"opera_android": {
"version_added": "65"
},
"safari": {
"version_added": false
},
"safari_ios": {
"version_added": false
},
"samsunginternet_android": {
"version_added": false
},
"webview_android": {
"version_added": false
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
},
"var": {
Expand Down