Skip to content

Commit 8960932

Browse files
authored
Cleanup caniuse tags and other properties (Modernizr#2388)
* Add missing mappings to caniuse * Cleanup properties and caniuse tags
1 parent 4d10f04 commit 8960932

7 files changed

Lines changed: 34 additions & 8 deletions

File tree

feature-detects/canvas/blending.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
"name": "canvas blending support",
44
"property": "canvasblending",
5+
"caniuse": "canvas-blending",
56
"tags": ["canvas"],
67
"notes": [{
78
"name": "W3C Spec",

feature-detects/css/customproperties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
{
33
"name": "CSS Custom Properties",
4-
"property": "csscustomproperties",
4+
"property": "customproperties",
55
"caniuse": "css-variables",
66
"tags": ["css"],
77
"builderAliases": ["css_customproperties"],

feature-detects/es5/strictmode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"name": "ES5 Strict Mode",
44
"property": "strictmode",
5-
"caniuse": "strict-mode",
5+
"caniuse": "use-strict",
66
"notes": [{
77
"name": "ECMAScript 5.1 Language Specification",
88
"href": "https://www.ecma-international.org/ecma-262/5.1/"

feature-detects/messagechannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
{
33
"name": "Message Channel",
4-
"property": "MessageChannel",
4+
"property": "messagechannel",
55
"authors": ["Raju Konga (@kongaraju)"],
66
"caniuse": "channel-messaging",
77
"tags": ["performance", "messagechannel"],

feature-detects/proximity.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*!
22
{
3+
"name": "Proximity API",
4+
"property": "proximity",
35
"authors": ["Cătălin Mariș"],
6+
"tags": ["events", "proximity"],
47
"caniuse": "proximity",
5-
"name": "Proximity API",
68
"notes": [{
79
"name": "MDN Docs",
810
"href": "https://developer.mozilla.org/en-US/docs/Web/API/Proximity_Events"
911
},{
1012
"name": "W3C Spec",
1113
"href": "https://www.w3.org/TR/proximity/"
12-
}],
13-
"property": "proximity",
14-
"tags": ["events", "proximity"]
14+
}]
1515
}
1616
!*/
1717
/* DOC

feature-detects/vml.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"name": "VML",
44
"property": "vml",
5-
"caniuse": "vml",
65
"tags": ["vml"],
76
"authors": ["Craig Andrews (@candrews)"],
87
"notes": [{

test/browser/integration/caniuse.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,33 @@ window.caniusecb = function(caniuse) {
1616
apng: 'apng',
1717
appearance: 'css-appearance',
1818
applicationcache: 'offline-apps',
19+
atobbtoa: 'atob-btoa',
1920
audio: 'audio',
21+
backdropfilter: 'css-backdrop-filter',
2022
backgroundblendmode: 'css-backgroundblendmode',
2123
blobconstructor: 'blobbuilder',
2224
bloburls: 'bloburls',
2325
borderimage: 'border-image',
2426
borderradius: 'border-radius',
27+
boxdecorationbreak: 'css-boxdecorationbreak',
2528
boxshadow: 'css-boxshadow',
2629
boxsizing: 'css3-boxsizing',
2730
canvas: 'canvas',
2831
canvasblending: 'canvas-blending',
2932
canvastext: 'canvas-text',
33+
checked: 'css-sel3',
3034
classlist: 'classlist',
3135
contenteditable: 'contenteditable',
3236
contextmenu: 'menu',
3337
cors: 'cors',
38+
cryptography: 'cryptography',
3439
cssanimations: 'css-animation',
3540
csscalc: 'calc',
3641
csscolumns: 'multicolumn',
3742
cssfilters: 'css-filters',
3843
cssgradients: 'css-gradients',
44+
csshyphens: 'css-hyphens',
45+
cssmask: 'css-masks',
3946
csspointerevents: 'pointer-events',
4047
csspositionsticky: 'css-sticky',
4148
cssreflections: 'css-reflections',
@@ -48,17 +55,24 @@ window.caniusecb = function(caniuse) {
4855
cssvmaxunit: 'viewport-units',
4956
cssvminunit: 'viewport-units',
5057
cssvwunit: 'viewport-units',
58+
customproperties: 'css-variables',
5159
datalistelem: 'datalist',
60+
dataset: 'dataset',
5261
datauri: 'datauri',
5362
details: 'details',
5463
deviceorientation: 'deviceorientation',
5564
displaytable: 'css-table',
65+
ellipsis: 'text-overflow',
5666
eventsource: 'eventsource',
67+
fetch: 'fetch',
68+
fileinput: 'forms',
5769
filereader: 'fileapi',
5870
filesystem: 'filesystem',
5971
flexbox: 'flexbox',
6072
flexboxlegacy: 'flexbox',
6173
flexboxtweener: 'flexbox',
74+
focuswithin: 'css-focus-visible',
75+
fontdisplay: 'css-font-rendering-controls',
6276
fontface: 'fontface',
6377
formvalidationapi: 'form-validation',
6478
fullscreen: 'fullscreen',
@@ -74,15 +88,21 @@ window.caniusecb = function(caniuse) {
7488
indexeddb: 'indexeddb',
7589
inlinesvg: 'svg-html5',
7690
inputtypes: 'forms',
91+
intersectionobserver: 'intersectionobserver',
7792
jpegxr: 'jpegxr',
7893
jpeg2000: 'jpeg2000',
7994
json: 'json',
95+
lastchild: 'css-sel3',
96+
ligatures: 'font-feature',
8097
localstorage: 'namevalue-storage',
8198
mathml: 'mathml',
8299
mediaqueries: 'css-mediaqueries',
100+
mediasource: 'mediasource',
101+
messagechannel: 'channel-messaging',
83102
meter: 'progress',
84103
multiplebgs: 'multibackgrounds',
85104
mutationobserver: 'mutationobserver',
105+
nthchild: 'css-sel3',
86106
notification: 'notifications',
87107
objectfit: 'object-fit',
88108
opacity: 'css-opacity',
@@ -92,6 +112,7 @@ window.caniusecb = function(caniuse) {
92112
postmessage: 'x-doc-messaging',
93113
progressbar: 'progress',
94114
promises: 'promises',
115+
proximity: 'proximity',
95116
queryselector: 'queryselector',
96117
regions: 'css-regions',
97118
requestanimationframe: 'requestanimationframe',
@@ -103,16 +124,21 @@ window.caniusecb = function(caniuse) {
103124
seamless: 'iframe-seamless',
104125
shapes: 'css-shapes',
105126
sharedworkers: 'sharedworkers',
127+
siblinggeneral: 'css-sel3',
106128
smil: 'svg-smil',
129+
srcset: 'srcset',
107130
strictmode: 'use-strict',
108131
stylescoped: 'style-scoped',
109132
supports: 'css-featurequeries',
110133
svg: 'svg',
111134
svgasimg: 'svg-img',
112135
svgfilters: 'svg-filters',
136+
target: 'css-sel3',
113137
template: 'template',
114138
textalignlast: 'css-text-align-last',
139+
textdecoration: 'text-decoration',
115140
textshadow: 'css-textshadow',
141+
touchevents: 'touch',
116142
typedarrays: 'typedarrays',
117143
unicoderange: 'font-unicode-range',
118144
userselect: 'user-select-none',

0 commit comments

Comments
 (0)