Skip to content

Commit ac881f8

Browse files
committed
Add caniuse links or comments where the (normalized) IDs match
This covers all cases where the web-features and caniuse IDs are the same if hyphens are removed. Some are "false friends" and comments were added to avoid them being matched in the future.
1 parent 613ba86 commit ac881f8

25 files changed

+30
-2
lines changed

features/accelerometer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Accelerometer
22
description: The `Accelerometer`, `LinearAccelerationSensor` and `GravitySensor` APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity, without its effect, or only its effect, respectively.
33
spec: https://w3c.github.io/accelerometer/
4+
caniuse: accelerometer
45
group: sensors
56
status:
67
compute_from:

features/background-clip-text.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
name: "background-clip: text"
33
description: "The `background-clip: text` CSS declaration draws the background underneath only the text in the element."
44
spec: https://drafts.csswg.org/css-backgrounds-4/#background-clip
5+
caniuse: background-clip-text
56
group: background

features/background-sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Background sync
22
description: The background synchronization API registers a service worker callback to run only when the device is no longer offline. You can use this to let users continue using your app while offline and synchronize with a server after reconnecting.
33
spec: https://wicg.github.io/background-sync/spec/
4+
caniuse: background-sync
45
status:
56
compute_from: api.SyncManager
67
compat_features:

features/gyroscope.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Gyroscope
22
description: The `Gyroscope` API reads the angular velocity of a device in three dimensions.
33
spec: https://w3c.github.io/gyroscope/#gyroscope-interface
4+
caniuse: gyroscope
45
group: sensors
56
status:
67
compute_from: api.Gyroscope

features/intl-plural-rules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Intl.PluralRules
22
description: "The `Intl.PluralRules` API creates a locale-aware object that tells you which of the language's pluralization rules apply based on a given number."
33
group: intl
44
spec: https://tc39.es/ecma402/#pluralrules-objects
5+
caniuse: intl-pluralrules
56
status:
67
compute_from: javascript.builtins.Intl.PluralRules
78
compat_features:

features/json.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: JSON
22
description: The `JSON` API provides static methods for parsing values from and converting values to JavaScript Object Notation (JSON), a serialization format for objects, arrays, numbers, strings, Boolean values, and null.
33
group: json
44
spec: https://tc39.es/ecma262/multipage/structured-data.html#sec-json-object
5+
caniuse: json
56
status:
67
compute_from: javascript.builtins.JSON
78
compat_features:

features/link-rel-preconnect.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: '<link rel="preconnect">'
22
description: The `rel="preconnect"` attribute for the `<link>` HTML element is a hint to the browser that the page or user is likely to request resources from another origin, so the browser should preemptively start a connection to the `href` value's origin.
33
spec: https://html.spec.whatwg.org/multipage/links.html#link-type-preconnect
4+
caniuse: link-rel-preconnect
45
compat_features:
56
- html.elements.link.rel.preconnect

features/magnetometer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Magnetometer
22
description: The `Magnetometer` API reads magnetic field sensor data from the device's magnetometer.
33
spec: https://w3c.github.io/magnetometer/
4+
caniuse: magnetometer
45
group: sensors
56
compat_features:
67
- api.Magnetometer

features/menu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: <menu>
22
description: The `<menu>` element represents an unordered list of action items (`<li>`), such as a toolbar. It is a semantic alternative to the `<ul>` element.
33
spec: https://html.spec.whatwg.org/multipage/grouping-content.html#menus
4+
# https://caniuse.com/menu is not linked here because it's for the <menuitem>
5+
# element, a historical Firefox-only feature.
46
group: html-elements
57
# TODO: Tag relevant parts of api.HTMLLIElement when possible:
68
# https://github.com/web-platform-dx/web-features/issues/1173

features/multi-column.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Multi-column layout
22
description: Multi-column layout flows an element's content across one or more columns in a single row, without affecting the `display` property of its children.
33
spec: https://drafts.csswg.org/css-multicol-1/
4+
caniuse: multicolumn
45
group: multi-column
56
status:
67
compute_from: css.properties.columns

0 commit comments

Comments
 (0)