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 {
487487}
488488
489489interface FontFaceDescriptors {
490- display?: string;
490+ ascentOverride?: string;
491+ descentOverride?: string;
492+ display?: FontDisplay;
491493 featureSettings?: string;
494+ lineGapOverride?: string;
492495 stretch?: string;
493496 style?: string;
494497 unicodeRange?: string;
@@ -5479,7 +5482,7 @@ declare var FocusEvent: {
54795482interface FontFace {
54805483 ascentOverride: string;
54815484 descentOverride: string;
5482- display: string ;
5485+ display: FontDisplay ;
54835486 family: string;
54845487 featureSettings: string;
54855488 lineGapOverride: string;
@@ -18371,6 +18374,7 @@ type EndOfStreamError = "decode" | "network";
1837118374type EndingType = "native" | "transparent";
1837218375type FileSystemHandleKind = "directory" | "file";
1837318376type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
18377+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
1837418378type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
1837518379type FontFaceSetLoadStatus = "loaded" | "loading";
1837618380type FullscreenNavigationUI = "auto" | "hide" | "show";
Original file line number Diff line number Diff line change @@ -203,8 +203,11 @@ interface FileSystemRemoveOptions {
203203}
204204
205205interface FontFaceDescriptors {
206- display ?: string ;
206+ ascentOverride ?: string ;
207+ descentOverride ?: string ;
208+ display ?: FontDisplay ;
207209 featureSettings ?: string ;
210+ lineGapOverride ?: string ;
208211 stretch ?: string ;
209212 style ?: string ;
210213 unicodeRange ?: string ;
@@ -1683,7 +1686,7 @@ declare var FileSystemHandle: {
16831686interface FontFace {
16841687 ascentOverride : string ;
16851688 descentOverride : string ;
1686- display : string ;
1689+ display : FontDisplay ;
16871690 family : string ;
16881691 featureSettings : string ;
16891692 lineGapOverride : string ;
@@ -5820,6 +5823,7 @@ type ColorSpaceConversion = "default" | "none";
58205823type DocumentVisibilityState = "hidden" | "visible" ;
58215824type EndingType = "native" | "transparent" ;
58225825type FileSystemHandleKind = "directory" | "file" ;
5826+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
58235827type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
58245828type FontFaceSetLoadStatus = "loaded" | "loading" ;
58255829type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
Original file line number Diff line number Diff line change @@ -178,8 +178,11 @@ interface FileSystemRemoveOptions {
178178}
179179
180180interface FontFaceDescriptors {
181- display ?: string ;
181+ ascentOverride ?: string ;
182+ descentOverride ?: string ;
183+ display ?: FontDisplay ;
182184 featureSettings ?: string ;
185+ lineGapOverride ?: string ;
183186 stretch ?: string ;
184187 style ?: string ;
185188 unicodeRange ?: string ;
@@ -1602,7 +1605,7 @@ declare var FileSystemHandle: {
16021605interface FontFace {
16031606 ascentOverride : string ;
16041607 descentOverride : string ;
1605- display : string ;
1608+ display : FontDisplay ;
16061609 family : string ;
16071610 featureSettings : string ;
16081611 lineGapOverride : string ;
@@ -5829,6 +5832,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
58295832type ColorSpaceConversion = "default" | "none" ;
58305833type EndingType = "native" | "transparent" ;
58315834type FileSystemHandleKind = "directory" | "file" ;
5835+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
58325836type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
58335837type FontFaceSetLoadStatus = "loaded" | "loading" ;
58345838type 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 {
207207}
208208
209209interface FontFaceDescriptors {
210- display ?: string ;
210+ ascentOverride ?: string ;
211+ descentOverride ?: string ;
212+ display ?: FontDisplay ;
211213 featureSettings ?: string ;
214+ lineGapOverride ?: string ;
212215 stretch ?: string ;
213216 style ?: string ;
214217 unicodeRange ?: string ;
@@ -1778,7 +1781,7 @@ declare var FileSystemSyncAccessHandle: {
17781781interface FontFace {
17791782 ascentOverride : string ;
17801783 descentOverride : string ;
1781- display : string ;
1784+ display : FontDisplay ;
17821785 family : string ;
17831786 featureSettings : string ;
17841787 lineGapOverride : string ;
@@ -6144,6 +6147,7 @@ type ColorSpaceConversion = "default" | "none";
61446147type DocumentVisibilityState = "hidden" | "visible" ;
61456148type EndingType = "native" | "transparent" ;
61466149type FileSystemHandleKind = "directory" | "file" ;
6150+ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap" ;
61476151type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded" ;
61486152type FontFaceSetLoadStatus = "loaded" | "loading" ;
61496153type FrameType = "auxiliary" | "nested" | "none" | "top-level" ;
Original file line number Diff line number Diff line change 282282 " afterend"
283283 ]
284284 },
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+ },
285296 "ClientType" : {
286297 "name" : " ClientTypes"
287298 },
Original file line number Diff line number Diff line change 12471247 }
12481248 ]
12491249 },
1250+ "FontFace" : {
1251+ "properties" : {
1252+ "property" : {
1253+ "display" : {
1254+ "type" : " FontDisplay"
1255+ }
1256+ }
1257+ }
1258+ },
12501259 "HTMLFrameSetElement" : {
12511260 "element" : [
12521261 {
30093018 }
30103019 },
30113020 "dictionaries" : {
3012- "dictionary" : {
3021+ "dictionary" : {
3022+ "FontFaceDescriptors" : {
3023+ "members" : {
3024+ "member" : {
3025+ "display" :{
3026+ "type" : " FontDisplay"
3027+ }
3028+ }
3029+ }
3030+ },
30133031 // https://github.com/microsoft/TypeScript/issues/46036
30143032 "CryptoKeyPair" : {
30153033 "members" : {
Original file line number Diff line number Diff line change 250250 "FontFaceDescriptors" : {
251251 "members" : {
252252 "member" : {
253- "ascentOverride" : null ,
254- "descentOverride" : null ,
255- "lineGapOverride" : null ,
256- "variationSettings" : null
253+ "variationSettings" : null // Gecko-only as of 2022-10
257254 }
258255 }
259256 },
You can’t perform that action at this time.
0 commit comments