File tree Expand file tree Collapse file tree 7 files changed +55
-13
lines changed Expand file tree Collapse file tree 7 files changed +55
-13
lines changed Original file line number Diff line number Diff line change @@ -487,8 +487,11 @@ interface FocusOptions {
487
487
}
488
488
489
489
interface FontFaceDescriptors {
490
- display?: string;
490
+ ascentOverride?: string;
491
+ descentOverride?: string;
492
+ display?: FontDisplay;
491
493
featureSettings?: string;
494
+ lineGapOverride?: string;
492
495
stretch?: string;
493
496
style?: string;
494
497
unicodeRange?: string;
@@ -5479,7 +5482,7 @@ declare var FocusEvent: {
5479
5482
interface FontFace {
5480
5483
ascentOverride: string;
5481
5484
descentOverride: string;
5482
- display: string ;
5485
+ display: FontDisplay ;
5483
5486
family: string;
5484
5487
featureSettings: string;
5485
5488
lineGapOverride: string;
@@ -18371,6 +18374,7 @@ type EndOfStreamError = "decode" | "network";
18371
18374
type EndingType = "native" | "transparent";
18372
18375
type FileSystemHandleKind = "directory" | "file";
18373
18376
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
18377
+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
18374
18378
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
18375
18379
type FontFaceSetLoadStatus = "loaded" | "loading";
18376
18380
type FullscreenNavigationUI = "auto" | "hide" | "show";
Original file line number Diff line number Diff line change @@ -203,8 +203,11 @@ interface FileSystemRemoveOptions {
203
203
}
204
204
205
205
interface FontFaceDescriptors {
206
- display ?: string ;
206
+ ascentOverride ?: string ;
207
+ descentOverride ?: string ;
208
+ display ?: FontDisplay ;
207
209
featureSettings ?: string ;
210
+ lineGapOverride ?: string ;
208
211
stretch ?: string ;
209
212
style ?: string ;
210
213
unicodeRange ?: string ;
@@ -1683,7 +1686,7 @@ declare var FileSystemHandle: {
1683
1686
interface FontFace {
1684
1687
ascentOverride : string ;
1685
1688
descentOverride : string ;
1686
- display : string ;
1689
+ display : FontDisplay ;
1687
1690
family : string ;
1688
1691
featureSettings : string ;
1689
1692
lineGapOverride : string ;
@@ -5820,6 +5823,7 @@ type ColorSpaceConversion = "default" | "none";
5820
5823
type DocumentVisibilityState = "hidden" | "visible" ;
5821
5824
type EndingType = "native" | "transparent" ;
5822
5825
type FileSystemHandleKind = "directory" | "file" ;
5826
+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
5823
5827
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
5824
5828
type FontFaceSetLoadStatus = "loaded" | "loading" ;
5825
5829
type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
Original file line number Diff line number Diff line change @@ -178,8 +178,11 @@ interface FileSystemRemoveOptions {
178
178
}
179
179
180
180
interface FontFaceDescriptors {
181
- display ?: string ;
181
+ ascentOverride ?: string ;
182
+ descentOverride ?: string ;
183
+ display ?: FontDisplay ;
182
184
featureSettings ?: string ;
185
+ lineGapOverride ?: string ;
183
186
stretch ?: string ;
184
187
style ?: string ;
185
188
unicodeRange ?: string ;
@@ -1602,7 +1605,7 @@ declare var FileSystemHandle: {
1602
1605
interface FontFace {
1603
1606
ascentOverride : string ;
1604
1607
descentOverride : string ;
1605
- display : string ;
1608
+ display : FontDisplay ;
1606
1609
family : string ;
1607
1610
featureSettings : string ;
1608
1611
lineGapOverride : string ;
@@ -5829,6 +5832,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
5829
5832
type ColorSpaceConversion = "default" | "none" ;
5830
5833
type EndingType = "native" | "transparent" ;
5831
5834
type FileSystemHandleKind = "directory" | "file" ;
5835
+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
5832
5836
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
5833
5837
type FontFaceSetLoadStatus = "loaded" | "loading" ;
5834
5838
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor" ;
Original file line number Diff line number Diff line change @@ -207,8 +207,11 @@ interface FileSystemRemoveOptions {
207
207
}
208
208
209
209
interface FontFaceDescriptors {
210
- display ?: string ;
210
+ ascentOverride ?: string ;
211
+ descentOverride ?: string ;
212
+ display ?: FontDisplay ;
211
213
featureSettings ?: string ;
214
+ lineGapOverride ?: string ;
212
215
stretch ?: string ;
213
216
style ?: string ;
214
217
unicodeRange ?: string ;
@@ -1778,7 +1781,7 @@ declare var FileSystemSyncAccessHandle: {
1778
1781
interface FontFace {
1779
1782
ascentOverride : string ;
1780
1783
descentOverride : string ;
1781
- display : string ;
1784
+ display : FontDisplay ;
1782
1785
family : string ;
1783
1786
featureSettings : string ;
1784
1787
lineGapOverride : string ;
@@ -6144,6 +6147,7 @@ type ColorSpaceConversion = "default" | "none";
6144
6147
type DocumentVisibilityState = "hidden" | "visible" ;
6145
6148
type EndingType = "native" | "transparent" ;
6146
6149
type FileSystemHandleKind = "directory" | "file" ;
6150
+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
6147
6151
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
6148
6152
type FontFaceSetLoadStatus = "loaded" | "loading" ;
6149
6153
type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
Original file line number Diff line number Diff line change 282
282
" afterend"
283
283
]
284
284
},
285
+ "FontDisplay" : {
286
+ "name" : " FontDisplay" ,
287
+ // https://w3c.github.io/csswg-drafts/css-fonts-4/#font-display-desc
288
+ "value" : [
289
+ " auto" ,
290
+ " block" ,
291
+ " swap" ,
292
+ " fallback" ,
293
+ " optional"
294
+ ]
295
+ },
285
296
"ClientType" : {
286
297
"name" : " ClientTypes"
287
298
},
Original file line number Diff line number Diff line change 1247
1247
}
1248
1248
]
1249
1249
},
1250
+ "FontFace" : {
1251
+ "properties" : {
1252
+ "property" : {
1253
+ "display" : {
1254
+ "type" : " FontDisplay"
1255
+ }
1256
+ }
1257
+ }
1258
+ },
1250
1259
"HTMLFrameSetElement" : {
1251
1260
"element" : [
1252
1261
{
3009
3018
}
3010
3019
},
3011
3020
"dictionaries" : {
3012
- "dictionary" : {
3021
+ "dictionary" : {
3022
+ "FontFaceDescriptors" : {
3023
+ "members" : {
3024
+ "member" : {
3025
+ "display" :{
3026
+ "type" : " FontDisplay"
3027
+ }
3028
+ }
3029
+ }
3030
+ },
3013
3031
// https://github.com/microsoft/TypeScript/issues/46036
3014
3032
"CryptoKeyPair" : {
3015
3033
"members" : {
Original file line number Diff line number Diff line change 250
250
"FontFaceDescriptors" : {
251
251
"members" : {
252
252
"member" : {
253
- "ascentOverride" : null ,
254
- "descentOverride" : null ,
255
- "lineGapOverride" : null ,
256
- "variationSettings" : null
253
+ "variationSettings" : null // Gecko-only as of 2022-10
257
254
}
258
255
}
259
256
},
You can’t perform that action at this time.
0 commit comments