@@ -226,7 +226,19 @@ let mdnFeatures = {
226226 placeItems : mdn . css . properties [ 'place-items' ] . __compat . support ,
227227 overflowShorthand : mdn . css . properties [ 'overflow' ] . multiple_keywords . __compat . support ,
228228 mediaRangeSyntax : mdn . css [ 'at-rules' ] . media . range_syntax . __compat . support ,
229- mediaIntervalSyntax : { } , // currently no browsers
229+ mediaIntervalSyntax : Object . fromEntries (
230+ Object . entries ( mdn . css [ 'at-rules' ] . media . range_syntax . __compat . support )
231+ . map ( ( [ browser , value ] ) => {
232+ // Firefox supported only ranges and not intervals for a while.
233+ if ( Array . isArray ( value ) ) {
234+ value = value . filter ( v => ! v . partial_implementation )
235+ } else if ( value . partial_implementation ) {
236+ value = undefined ;
237+ }
238+
239+ return [ browser , value ] ;
240+ } )
241+ ) ,
230242 logicalBorders : mdn . css . properties [ 'border-inline-start' ] . __compat . support ,
231243 logicalBorderShorthand : mdn . css . properties [ 'border-inline' ] . __compat . support ,
232244 logicalBorderRadius : mdn . css . properties [ 'border-start-start-radius' ] . __compat . support ,
@@ -238,7 +250,7 @@ let mdnFeatures = {
238250 logicalSize : mdn . css . properties [ 'inline-size' ] . __compat . support ,
239251 logicalTextAlign : mdn . css . properties [ 'text-align' ] [ 'flow_relative_values_start_and_end' ] . __compat . support ,
240252 labColors : mdn . css . types . color . lab . __compat . support ,
241- oklabColors : { } ,
253+ oklabColors : mdn . css . types . color . oklab . __compat . support ,
242254 colorFunction : mdn . css . types . color . color . __compat . support ,
243255 spaceSeparatedColorFunction : mdn . css . types . color . rgb . space_separated_parameters . __compat . support ,
244256 textDecorationThicknessPercent : mdn . css . properties [ 'text-decoration-thickness' ] . percentage . __compat . support ,
@@ -276,8 +288,8 @@ for (let feature in mdnFeatures) {
276288 let feat = mdnFeatures [ feature ] [ name ] ;
277289 let version ;
278290 if ( Array . isArray ( feat ) ) {
279- version = feat . filter ( x => x . version_added && ! x . alternative_name ) . sort ( ( a , b ) => parseVersion ( a . version_added ) < parseVersion ( b . version_added ) ? - 1 : 1 ) [ 0 ] . version_added ;
280- } else {
291+ version = feat . filter ( x => x . version_added && ! x . alternative_name && ! x . flags ) . sort ( ( a , b ) => parseVersion ( a . version_added ) < parseVersion ( b . version_added ) ? - 1 : 1 ) [ 0 ] . version_added ;
292+ } else if ( ! feat . alternative_name && ! feat . flags ) {
281293 version = feat . version_added ;
282294 }
283295
0 commit comments