From 83ee5a1ee7f21995f6578915fe75a49ef3663296 Mon Sep 17 00:00:00 2001 From: Fredrik Nicol Date: Tue, 21 Mar 2023 09:35:53 +0100 Subject: [PATCH] Bump MDN --- __tests__/__fixtures__/package-lock.json | 8 +- __tests__/package-lock.json | 8 +- index.d.ts | 220 ++++++++++++++++------- index.js.flow | 46 ++++- package-lock.json | 30 ++-- package.json | 4 +- src/data/urls.json | 3 + 7 files changed, 222 insertions(+), 97 deletions(-) diff --git a/__tests__/__fixtures__/package-lock.json b/__tests__/__fixtures__/package-lock.json index 07f1744..da0f319 100644 --- a/__tests__/__fixtures__/package-lock.json +++ b/__tests__/__fixtures__/package-lock.json @@ -34,8 +34,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#0bf809b28f3cf5007a29b59b885dfada560ead47", - "mdn-data": "git+https://github.com/mdn/data.git#9fc21e14442ed6f71626e763e9f5e5370c533380", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", @@ -79,8 +79,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#0bf809b28f3cf5007a29b59b885dfada560ead47", - "mdn-data": "git+https://github.com/mdn/data.git#9fc21e14442ed6f71626e763e9f5e5370c533380", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", diff --git a/__tests__/package-lock.json b/__tests__/package-lock.json index d265f09..7fe8845 100644 --- a/__tests__/package-lock.json +++ b/__tests__/package-lock.json @@ -44,8 +44,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#0bf809b28f3cf5007a29b59b885dfada560ead47", - "mdn-data": "git+https://github.com/mdn/data.git#9fc21e14442ed6f71626e763e9f5e5370c533380", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", @@ -226,8 +226,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#0bf809b28f3cf5007a29b59b885dfada560ead47", - "mdn-data": "git+https://github.com/mdn/data.git#9fc21e14442ed6f71626e763e9f5e5370c533380", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", diff --git a/index.d.ts b/index.d.ts index 6ad835b..5c46b45 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1507,7 +1507,7 @@ export interface StandardLonghandProperties | undefined; + /** + * The `margin-trim` property allows the container to trim the margins of its children where they adjoin the container's edges. + * + * **Syntax**: `none | in-flow | all` + * + * **Initial value**: `none` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :----: | :-----: | :------: | :--: | :-: | + * | No | No | **16.4** | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/margin-trim + */ + marginTrim?: Property.MarginTrim | undefined; /** * The **`mask-border-mode`** CSS property specifies the blending mode used in a mask border. * @@ -2862,9 +2876,9 @@ export interface StandardLonghandProperties | undefined; + /** + * The **`page`** CSS property is used to specify the named page, a specific type of page defined by the `@page` at-rule. + * + * **Syntax**: `auto | ` + * + * **Initial value**: `auto` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :----: | :-----: | :---------: | :--: | :-: | + * | **85** | **110** | **preview** | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/page + */ + page?: Property.Page | undefined; /** * The **`page-break-after`** CSS property adjusts page breaks _after_ the current element. * @@ -4157,7 +4185,7 @@ export interface StandardLonghandProperties` + * **Syntax**: `none | #` * * **Initial value**: `none` * @@ -4818,6 +4846,20 @@ export interface StandardLonghandProperties | undefined; + /** + * The **`view-transition-name`** CSS property provides the selected element with a distinct identifying name (a ``) and causes it to participate in a separate view transition from the root view transition — or no view transition if the `none` value is specified. + * + * **Syntax**: `none | ` + * + * **Initial value**: `none` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :-----: | :-----: | :----: | :--: | :-: | + * | **111** | No | No | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/view-transition-name + */ + viewTransitionName?: Property.ViewTransitionName | undefined; /** * The **`visibility`** CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a ``. * @@ -5708,7 +5750,7 @@ export interface StandardShorthandProperties || ` + * **Syntax**: `[<'scroll-timeline-name'> <'scroll-timeline-axis'>?]#` * * | Chrome | Firefox | Safari | Edge | IE | * | :----: | :-----: | :----: | :--: | :-: | @@ -5842,6 +5884,14 @@ export interface VendorLonghandProperties | none` + * + * **Initial value**: `none` + */ + MozBinding?: Property.MozBinding | undefined; /** * In Mozilla applications like Firefox, the **`-moz-border-bottom-colors`** CSS property sets a list of colors for the bottom border. * @@ -8108,16 +8158,6 @@ export interface ObsoleteProperties | undefined; - /** - * The **`-moz-binding`** CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element. - * - * **Syntax**: ` | none` - * - * **Initial value**: `none` - * - * @deprecated - */ - MozBinding?: Property.MozBinding | undefined; /** * The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. * @@ -10296,7 +10336,7 @@ export interface StandardLonghandPropertiesHyphen | undefined; + /** + * The `margin-trim` property allows the container to trim the margins of its children where they adjoin the container's edges. + * + * **Syntax**: `none | in-flow | all` + * + * **Initial value**: `none` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :----: | :-----: | :------: | :--: | :-: | + * | No | No | **16.4** | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/margin-trim + */ + "margin-trim"?: Property.MarginTrim | undefined; /** * The **`mask-border-mode`** CSS property specifies the blending mode used in a mask border. * @@ -11651,9 +11705,9 @@ export interface StandardLonghandPropertiesHyphen | undefined; + /** + * The **`page`** CSS property is used to specify the named page, a specific type of page defined by the `@page` at-rule. + * + * **Syntax**: `auto | ` + * + * **Initial value**: `auto` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :----: | :-----: | :---------: | :--: | :-: | + * | **85** | **110** | **preview** | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/page + */ + page?: Property.Page | undefined; /** * The **`page-break-after`** CSS property adjusts page breaks _after_ the current element. * @@ -12946,7 +13014,7 @@ export interface StandardLonghandPropertiesHyphen` + * **Syntax**: `none | #` * * **Initial value**: `none` * @@ -13607,6 +13675,20 @@ export interface StandardLonghandPropertiesHyphen | undefined; + /** + * The **`view-transition-name`** CSS property provides the selected element with a distinct identifying name (a ``) and causes it to participate in a separate view transition from the root view transition — or no view transition if the `none` value is specified. + * + * **Syntax**: `none | ` + * + * **Initial value**: `none` + * + * | Chrome | Firefox | Safari | Edge | IE | + * | :-----: | :-----: | :----: | :--: | :-: | + * | **111** | No | No | n/a | No | + * + * @see https://developer.mozilla.org/docs/Web/CSS/view-transition-name + */ + "view-transition-name"?: Property.ViewTransitionName | undefined; /** * The **`visibility`** CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a `
`. * @@ -14497,7 +14579,7 @@ export interface StandardShorthandPropertiesHyphen || ` + * **Syntax**: `[<'scroll-timeline-name'> <'scroll-timeline-axis'>?]#` * * | Chrome | Firefox | Safari | Edge | IE | * | :----: | :-----: | :----: | :--: | :-: | @@ -14631,6 +14713,14 @@ export interface VendorLonghandPropertiesHyphen | none` + * + * **Initial value**: `none` + */ + "-moz-binding"?: Property.MozBinding | undefined; /** * In Mozilla applications like Firefox, the **`-moz-border-bottom-colors`** CSS property sets a list of colors for the bottom border. * @@ -16899,16 +16989,6 @@ export interface ObsoletePropertiesHyphen | undefined; - /** - * The **`-moz-binding`** CSS property is used by Mozilla-based applications to attach an XBL binding to a DOM element. - * - * **Syntax**: ` | none` - * - * **Initial value**: `none` - * - * @deprecated - */ - "-moz-binding"?: Property.MozBinding | undefined; /** * The **`border-radius`** CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. * @@ -17665,6 +17745,10 @@ export type AdvancedPseudos = | "::cue-region" | "::part" | "::slotted" + | "::view-transition-group" + | "::view-transition-image-pair" + | "::view-transition-new" + | "::view-transition-old" | ":dir" | ":has" | ":host" @@ -17735,6 +17819,7 @@ export type SimplePseudos = | "::selection" | "::spelling-error" | "::target-text" + | "::view-transition" | ":active" | ":after" | ":any-link" @@ -17834,7 +17919,6 @@ export type HtmlAttributes = | "[color]" | "[cols]" | "[colspan]" - | "[command]" | "[compact]" | "[content]" | "[contenteditable]" @@ -17879,7 +17963,6 @@ export type HtmlAttributes = | "[hreflang]" | "[hspace]" | "[http-equiv]" - | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" @@ -17940,7 +18023,6 @@ export type HtmlAttributes = | "[prefetch]" | "[preload]" | "[profile]" - | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" @@ -17966,6 +18048,7 @@ export type HtmlAttributes = | "[scrolling]" | "[selected]" | "[shadowroot]" + | "[shadowrootmode]" | "[shape]" | "[size]" | "[sizes]" @@ -17994,6 +18077,7 @@ export type HtmlAttributes = | "[value]" | "[valuetype]" | "[version]" + | "[virtualkeyboardpolicy]" | "[vlink]" | "[vspace]" | "[webkitallowfullscreen]" @@ -18919,6 +19003,8 @@ export namespace Property { export type MarginTop = Globals | TLength | "auto" | (string & {}); + export type MarginTrim = Globals | "all" | "in-flow" | "none"; + export type Mask = Globals | DataType.MaskLayer | (string & {}); export type MaskBorder = Globals | "alpha" | "luminance" | "none" | "repeat" | "round" | "space" | "stretch" | (string & {}) | (number & {}); @@ -19161,6 +19247,8 @@ export namespace Property { export type PaddingTop = Globals | TLength | (string & {}); + export type Page = Globals | "auto" | (string & {}); + export type PageBreakAfter = Globals | "always" | "auto" | "avoid" | "left" | "recto" | "right" | "verso"; export type PageBreakBefore = Globals | "always" | "auto" | "avoid" | "left" | "recto" | "right" | "verso"; @@ -19265,9 +19353,9 @@ export namespace Property { export type ScrollSnapTypeY = Globals | "mandatory" | "none" | "proximity"; - export type ScrollTimeline = Globals | (string & {}); + export type ScrollTimeline = Globals | "none" | (string & {}); - export type ScrollTimelineAxis = Globals | "block" | "horizontal" | "inline" | "vertical"; + export type ScrollTimelineAxis = Globals | "block" | "horizontal" | "inline" | "vertical" | (string & {}); export type ScrollTimelineName = Globals | "none" | (string & {}); @@ -19422,6 +19510,8 @@ export namespace Property { | "top" | (string & {}); + export type ViewTransitionName = Globals | "none" | (string & {}); + export type Visibility = Globals | "collapse" | "hidden" | "visible"; export type WhiteSpace = Globals | "-moz-pre-wrap" | "break-spaces" | "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap"; @@ -19988,12 +20078,14 @@ export namespace AtRule { export interface Page { bleed?: Bleed | undefined; marks?: Marks | undefined; + pageOrientation?: PageOrientation | undefined; size?: Size | undefined; } export interface PageHyphen { bleed?: Bleed | undefined; marks?: Marks | undefined; + "page-orientation"?: PageOrientation | undefined; size?: Size | undefined; } @@ -20111,6 +20203,8 @@ export namespace AtRule { type Marks = "crop" | "cross" | "none" | (string & {}); + type PageOrientation = "rotate-left" | "rotate-right" | "upright"; + type Size = DataType.PageSize | TLength | "auto" | "landscape" | "portrait" | (string & {}); type Inherits = "false" | "true"; diff --git a/index.js.flow b/index.js.flow index 8bac6cf..c7f62e3 100644 --- a/index.js.flow +++ b/index.js.flow @@ -188,6 +188,7 @@ export type StandardLonghandProperties = { marginLeft?: Property$MarginLeft, marginRight?: Property$MarginRight, marginTop?: Property$MarginTop, + marginTrim?: Property$MarginTrim, maskBorderMode?: Property$MaskBorderMode, maskBorderOutset?: Property$MaskBorderOutset, maskBorderRepeat?: Property$MaskBorderRepeat, @@ -254,6 +255,7 @@ export type StandardLonghandProperties = { paddingLeft?: Property$PaddingLeft, paddingRight?: Property$PaddingRight, paddingTop?: Property$PaddingTop, + page?: Property$Page, pageBreakAfter?: Property$PageBreakAfter, pageBreakBefore?: Property$PageBreakBefore, pageBreakInside?: Property$PageBreakInside, @@ -342,6 +344,7 @@ export type StandardLonghandProperties = { unicodeBidi?: Property$UnicodeBidi, userSelect?: Property$UserSelect, verticalAlign?: Property$VerticalAlign, + viewTransitionName?: Property$ViewTransitionName, visibility?: Property$Visibility, whiteSpace?: Property$WhiteSpace, widows?: Property$Widows, @@ -436,6 +439,7 @@ export type VendorLonghandProperties = {| MozAnimationTimingFunction?: Property$AnimationTimingFunction, MozAppearance?: Property$MozAppearance, MozBackfaceVisibility?: Property$BackfaceVisibility, + MozBinding?: Property$MozBinding, MozBorderBottomColors?: Property$MozBorderBottomColors, MozBorderEndColor?: Property$BorderInlineEndColor, MozBorderEndStyle?: Property$BorderInlineEndStyle, @@ -724,7 +728,6 @@ export type ObsoleteProperties = {| MozBackgroundInlinePolicy?: Property$BoxDecorationBreak, MozBackgroundOrigin?: Property$BackgroundOrigin, MozBackgroundSize?: Property$BackgroundSize, - MozBinding?: Property$MozBinding, MozBorderRadius?: Property$BorderRadius, MozBorderRadiusBottomleft?: Property$BorderBottomLeftRadius, MozBorderRadiusBottomright?: Property$BorderBottomRightRadius, @@ -1047,6 +1050,7 @@ export type StandardLonghandPropertiesHyphen, "margin-right"?: Property$MarginRight, "margin-top"?: Property$MarginTop, + "margin-trim"?: Property$MarginTrim, "mask-border-mode"?: Property$MaskBorderMode, "mask-border-outset"?: Property$MaskBorderOutset, "mask-border-repeat"?: Property$MaskBorderRepeat, @@ -1113,6 +1117,7 @@ export type StandardLonghandPropertiesHyphen, "padding-right"?: Property$PaddingRight, "padding-top"?: Property$PaddingTop, + page?: Property$Page, "page-break-after"?: Property$PageBreakAfter, "page-break-before"?: Property$PageBreakBefore, "page-break-inside"?: Property$PageBreakInside, @@ -1201,6 +1206,7 @@ export type StandardLonghandPropertiesHyphen, + "view-transition-name"?: Property$ViewTransitionName, visibility?: Property$Visibility, "white-space"?: Property$WhiteSpace, widows?: Property$Widows, @@ -1298,6 +1304,7 @@ export type VendorLonghandPropertiesHyphen "-moz-animation-timing-function"?: Property$AnimationTimingFunction, "-moz-appearance"?: Property$MozAppearance, "-moz-backface-visibility"?: Property$BackfaceVisibility, + "-moz-binding"?: Property$MozBinding, "-moz-border-bottom-colors"?: Property$MozBorderBottomColors, "-moz-border-end-color"?: Property$BorderInlineEndColor, "-moz-border-end-style"?: Property$BorderInlineEndStyle, @@ -1589,7 +1596,6 @@ export type ObsoletePropertiesHyphen = {| "-moz-background-inline-policy"?: Property$BoxDecorationBreak, "-moz-background-origin"?: Property$BackgroundOrigin, "-moz-background-size"?: Property$BackgroundSize, - "-moz-binding"?: Property$MozBinding, "-moz-border-radius"?: Property$BorderRadius, "-moz-border-radius-bottomleft"?: Property$BorderBottomLeftRadius, "-moz-border-radius-bottomright"?: Property$BorderBottomRightRadius, @@ -1912,6 +1918,7 @@ export type StandardLonghandPropertiesFallback | Array>, marginRight?: Property$MarginRight | Array>, marginTop?: Property$MarginTop | Array>, + marginTrim?: Property$MarginTrim | Array, maskBorderMode?: Property$MaskBorderMode | Array, maskBorderOutset?: Property$MaskBorderOutset | Array>, maskBorderRepeat?: Property$MaskBorderRepeat | Array, @@ -1978,6 +1985,7 @@ export type StandardLonghandPropertiesFallback | Array>, paddingRight?: Property$PaddingRight | Array>, paddingTop?: Property$PaddingTop | Array>, + page?: Property$Page | Array, pageBreakAfter?: Property$PageBreakAfter | Array, pageBreakBefore?: Property$PageBreakBefore | Array, pageBreakInside?: Property$PageBreakInside | Array, @@ -2066,6 +2074,7 @@ export type StandardLonghandPropertiesFallback, userSelect?: Property$UserSelect | Array, verticalAlign?: Property$VerticalAlign | Array>, + viewTransitionName?: Property$ViewTransitionName | Array, visibility?: Property$Visibility | Array, whiteSpace?: Property$WhiteSpace | Array, widows?: Property$Widows | Array, @@ -2163,6 +2172,7 @@ export type VendorLonghandPropertiesFallback, MozAppearance?: Property$MozAppearance | Array, MozBackfaceVisibility?: Property$BackfaceVisibility | Array, + MozBinding?: Property$MozBinding | Array, MozBorderBottomColors?: Property$MozBorderBottomColors | Array, MozBorderEndColor?: Property$BorderInlineEndColor | Array, MozBorderEndStyle?: Property$BorderInlineEndStyle | Array, @@ -2454,7 +2464,6 @@ export type ObsoletePropertiesFallback = { MozBackgroundInlinePolicy?: Property$BoxDecorationBreak | Array, MozBackgroundOrigin?: Property$BackgroundOrigin | Array, MozBackgroundSize?: Property$BackgroundSize | Array>, - MozBinding?: Property$MozBinding | Array, MozBorderRadius?: Property$BorderRadius | Array>, MozBorderRadiusBottomleft?: Property$BorderBottomLeftRadius | Array>, MozBorderRadiusBottomright?: Property$BorderBottomRightRadius | Array>, @@ -2777,6 +2786,7 @@ export type StandardLonghandPropertiesHyphenFallback | Array>, "margin-right"?: Property$MarginRight | Array>, "margin-top"?: Property$MarginTop | Array>, + "margin-trim"?: Property$MarginTrim | Array, "mask-border-mode"?: Property$MaskBorderMode | Array, "mask-border-outset"?: Property$MaskBorderOutset | Array>, "mask-border-repeat"?: Property$MaskBorderRepeat | Array, @@ -2843,6 +2853,7 @@ export type StandardLonghandPropertiesHyphenFallback | Array>, "padding-right"?: Property$PaddingRight | Array>, "padding-top"?: Property$PaddingTop | Array>, + page?: Property$Page | Array, "page-break-after"?: Property$PageBreakAfter | Array, "page-break-before"?: Property$PageBreakBefore | Array, "page-break-inside"?: Property$PageBreakInside | Array, @@ -2931,6 +2942,7 @@ export type StandardLonghandPropertiesHyphenFallback, "user-select"?: Property$UserSelect | Array, "vertical-align"?: Property$VerticalAlign | Array>, + "view-transition-name"?: Property$ViewTransitionName | Array, visibility?: Property$Visibility | Array, "white-space"?: Property$WhiteSpace | Array, widows?: Property$Widows | Array, @@ -3028,6 +3040,7 @@ export type VendorLonghandPropertiesHyphenFallback, "-moz-appearance"?: Property$MozAppearance | Array, "-moz-backface-visibility"?: Property$BackfaceVisibility | Array, + "-moz-binding"?: Property$MozBinding | Array, "-moz-border-bottom-colors"?: Property$MozBorderBottomColors | Array, "-moz-border-end-color"?: Property$BorderInlineEndColor | Array, "-moz-border-end-style"?: Property$BorderInlineEndStyle | Array, @@ -3319,7 +3332,6 @@ export type ObsoletePropertiesHyphenFallback, "-moz-background-origin"?: Property$BackgroundOrigin | Array, "-moz-background-size"?: Property$BackgroundSize | Array>, - "-moz-binding"?: Property$MozBinding | Array, "-moz-border-radius"?: Property$BorderRadius | Array>, "-moz-border-radius-bottomleft"?: Property$BorderBottomLeftRadius | Array>, "-moz-border-radius-bottomright"?: Property$BorderBottomRightRadius | Array>, @@ -3479,6 +3491,10 @@ export type AdvancedPseudos = | "::cue-region" | "::part" | "::slotted" + | "::view-transition-group" + | "::view-transition-image-pair" + | "::view-transition-new" + | "::view-transition-old" | ":dir" | ":has" | ":host" @@ -3549,6 +3565,7 @@ export type SimplePseudos = | "::selection" | "::spelling-error" | "::target-text" + | "::view-transition" | ":active" | ":after" | ":any-link" @@ -3648,7 +3665,6 @@ export type HtmlAttributes = | "[color]" | "[cols]" | "[colspan]" - | "[command]" | "[compact]" | "[content]" | "[contenteditable]" @@ -3693,7 +3709,6 @@ export type HtmlAttributes = | "[hreflang]" | "[hspace]" | "[http-equiv]" - | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" @@ -3754,7 +3769,6 @@ export type HtmlAttributes = | "[prefetch]" | "[preload]" | "[profile]" - | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" @@ -3780,6 +3794,7 @@ export type HtmlAttributes = | "[scrolling]" | "[selected]" | "[shadowroot]" + | "[shadowrootmode]" | "[shape]" | "[size]" | "[sizes]" @@ -3808,6 +3823,7 @@ export type HtmlAttributes = | "[value]" | "[valuetype]" | "[version]" + | "[virtualkeyboardpolicy]" | "[vlink]" | "[vspace]" | "[webkitallowfullscreen]" @@ -4732,6 +4748,8 @@ export type Property$MarginRight = Globals | TLength | "au export type Property$MarginTop = Globals | TLength | "auto" | string; +export type Property$MarginTrim = Globals | "all" | "in-flow" | "none"; + export type Property$Mask = Globals | DataType$MaskLayer | string; export type Property$MaskBorder = Globals | "alpha" | "luminance" | "none" | "repeat" | "round" | "space" | "stretch" | string | number; @@ -4974,6 +4992,8 @@ export type Property$PaddingRight = Globals | TLength | st export type Property$PaddingTop = Globals | TLength | string; +export type Property$Page = Globals | "auto" | string; + export type Property$PageBreakAfter = Globals | "always" | "auto" | "avoid" | "left" | "recto" | "right" | "verso"; export type Property$PageBreakBefore = Globals | "always" | "auto" | "avoid" | "left" | "recto" | "right" | "verso"; @@ -5078,9 +5098,9 @@ export type Property$ScrollSnapTypeX = Globals | "mandatory" | "none" | "proximi export type Property$ScrollSnapTypeY = Globals | "mandatory" | "none" | "proximity"; -export type Property$ScrollTimeline = Globals | string; +export type Property$ScrollTimeline = Globals | "none" | string; -export type Property$ScrollTimelineAxis = Globals | "block" | "horizontal" | "inline" | "vertical"; +export type Property$ScrollTimelineAxis = Globals | "block" | "horizontal" | "inline" | "vertical" | string; export type Property$ScrollTimelineName = Globals | "none" | string; @@ -5224,6 +5244,8 @@ export type Property$UserSelect = Globals | "-moz-none" | "all" | "auto" | "cont export type Property$VerticalAlign = Globals | TLength | "baseline" | "bottom" | "middle" | "sub" | "super" | "text-bottom" | "text-top" | "top" | string; +export type Property$ViewTransitionName = Globals | "none" | string; + export type Property$Visibility = Globals | "collapse" | "hidden" | "visible"; export type Property$WhiteSpace = Globals | "-moz-pre-wrap" | "break-spaces" | "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap"; @@ -5842,24 +5864,28 @@ export type AtRule$FontFaceHyphenFallback export type AtRule$Page = {| bleed?: AtRule$Bleed, marks?: AtRule$Marks, + pageOrientation?: AtRule$PageOrientation, size?: AtRule$Size, |}; export type AtRule$PageHyphen = {| bleed?: AtRule$Bleed, marks?: AtRule$Marks, + "page-orientation"?: AtRule$PageOrientation, size?: AtRule$Size, |}; export type AtRule$PageFallback = {| bleed?: AtRule$Bleed | Array>, marks?: AtRule$Marks | Array, + pageOrientation?: AtRule$PageOrientation | Array, size?: AtRule$Size | Array>, |}; export type AtRule$PageHyphenFallback = {| bleed?: AtRule$Bleed | Array>, marks?: AtRule$Marks | Array, + "page-orientation"?: AtRule$PageOrientation | Array, size?: AtRule$Size | Array>, |}; @@ -6007,6 +6033,8 @@ type AtRule$Bleed = TLength | "auto"; type AtRule$Marks = "crop" | "cross" | "none" | string; +type AtRule$PageOrientation = "rotate-left" | "rotate-right" | "upright"; + type AtRule$Size = DataType$PageSize | TLength | "auto" | "landscape" | "portrait" | string; type AtRule$Inherits = "false" | "true"; diff --git a/package-lock.json b/package-lock.json index 9bdad1e..51ca09f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,8 +29,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#82f6eb1a8ea36da55eea7f2f287160a258b41423", - "mdn-data": "git+https://github.com/mdn/data.git#7ab601a85323133665c0679fcb86c86ff2840299", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", @@ -4730,19 +4730,19 @@ }, "node_modules/mdn-browser-compat-data": { "name": "@mdn/browser-compat-data", - "version": "5.2.24", - "resolved": "git+ssh://git@github.com/mdn/browser-compat-data.git#82f6eb1a8ea36da55eea7f2f287160a258b41423", - "integrity": "sha512-dr641F6nNlr1PiJ0iy25lKDNmFHTUSCODLD/dhUDEI6kw+CgsSom48YaZV+BTq9h3E4IrSnRSs9DOWvxJJJMAQ==", + "version": "5.2.43", + "resolved": "git+ssh://git@github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "integrity": "sha512-DVluBS+U5V5v/92ZyMKwWHd7L5XJSIUkz3eBErJX/LHzvQn9QNUZDIct53vdmUKhVlqDOnmMOpdIRuZqgenqLQ==", "dev": true, "license": "CC0-1.0", "engines": { - "node": ">=16.15.0 <17.0.0 || >=17.5.0" + "node": ">=18.0.0" } }, "node_modules/mdn-data": { - "version": "2.0.30", - "resolved": "git+ssh://git@github.com/mdn/data.git#7ab601a85323133665c0679fcb86c86ff2840299", - "integrity": "sha512-VURA0UCc7BPWSXsk69fGQRwAxHXks7y+hDE+L+nnr8KRy0ouBiPuGoHwWr97iRCfa1BVPI2v2O3GIbBwGmU5Xw==", + "version": "2.0.31", + "resolved": "git+ssh://git@github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", + "integrity": "sha512-B5MXiNT2Zvn/2BYrLgst69ZZ3smQ1fli8TpjiK4Q3nidW4ge8tQF6ZlUinbIeH7WoaEa5StOLUoPfCrIqKU2Fg==", "dev": true, "license": "CC0-1.0" }, @@ -9859,16 +9859,16 @@ } }, "mdn-browser-compat-data": { - "version": "git+ssh://git@github.com/mdn/browser-compat-data.git#82f6eb1a8ea36da55eea7f2f287160a258b41423", - "integrity": "sha512-dr641F6nNlr1PiJ0iy25lKDNmFHTUSCODLD/dhUDEI6kw+CgsSom48YaZV+BTq9h3E4IrSnRSs9DOWvxJJJMAQ==", + "version": "git+ssh://git@github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "integrity": "sha512-DVluBS+U5V5v/92ZyMKwWHd7L5XJSIUkz3eBErJX/LHzvQn9QNUZDIct53vdmUKhVlqDOnmMOpdIRuZqgenqLQ==", "dev": true, - "from": "mdn-browser-compat-data@git+https://github.com/mdn/browser-compat-data.git#82f6eb1a8ea36da55eea7f2f287160a258b41423" + "from": "mdn-browser-compat-data@git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4" }, "mdn-data": { - "version": "git+ssh://git@github.com/mdn/data.git#7ab601a85323133665c0679fcb86c86ff2840299", - "integrity": "sha512-VURA0UCc7BPWSXsk69fGQRwAxHXks7y+hDE+L+nnr8KRy0ouBiPuGoHwWr97iRCfa1BVPI2v2O3GIbBwGmU5Xw==", + "version": "git+ssh://git@github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", + "integrity": "sha512-B5MXiNT2Zvn/2BYrLgst69ZZ3smQ1fli8TpjiK4Q3nidW4ge8tQF6ZlUinbIeH7WoaEa5StOLUoPfCrIqKU2Fg==", "dev": true, - "from": "mdn-data@git+https://github.com/mdn/data.git#7ab601a85323133665c0679fcb86c86ff2840299" + "from": "mdn-data@git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d" }, "merge-stream": { "version": "2.0.0", diff --git a/package.json b/package.json index 82e6d23..4c98f1f 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "flow-bin": "^0.178.0", "jest": "^28.1.0", "jsdom": "^19.0.0", - "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#82f6eb1a8ea36da55eea7f2f287160a258b41423", - "mdn-data": "git+https://github.com/mdn/data.git#7ab601a85323133665c0679fcb86c86ff2840299", + "mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#ceb0d78954497e514df05b6ecb4dfea082f38de4", + "mdn-data": "git+https://github.com/mdn/data.git#878a33e499419d89b14f63eb63cb8673adafba3d", "prettier": "^2.6.2", "request": "^2.88.2", "ts-jest": "^28.0.2", diff --git a/src/data/urls.json b/src/data/urls.json index 7519671..904841a 100644 --- a/src/data/urls.json +++ b/src/data/urls.json @@ -318,6 +318,7 @@ "https://developer.mozilla.org/docs/Web/CSS/margin-left": "The **`margin-left`** CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.", "https://developer.mozilla.org/docs/Web/CSS/margin-right": "The **`margin-right`** CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.", "https://developer.mozilla.org/docs/Web/CSS/margin-top": "The **`margin-top`** CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.", + "https://developer.mozilla.org/docs/Web/CSS/margin-trim": "The `margin-trim` property allows the container to trim the margins of its children where they adjoin the container's edges.", "https://developer.mozilla.org/docs/Web/CSS/mask": "The **`mask`** CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.", "https://developer.mozilla.org/docs/Web/CSS/mask-border": "The **`mask-border`** CSS shorthand property lets you create a mask along the edge of an element's border.", "https://developer.mozilla.org/docs/Web/CSS/mask-border-mode": "The **`mask-border-mode`** CSS property specifies the blending mode used in a mask border.", @@ -381,6 +382,7 @@ "https://developer.mozilla.org/docs/Web/CSS/padding-left": "The **`padding-left`** CSS property sets the width of the padding area to the left of an element.", "https://developer.mozilla.org/docs/Web/CSS/padding-right": "The **`padding-right`** CSS property sets the width of the padding area on the right of an element.", "https://developer.mozilla.org/docs/Web/CSS/padding-top": "The **`padding-top`** CSS property sets the height of the padding area on the top of an element.", + "https://developer.mozilla.org/docs/Web/CSS/page": "The **`page`** CSS property is used to specify the named page, a specific type of page defined by the `@page` at-rule.", "https://developer.mozilla.org/docs/Web/CSS/page-break-after": "The **`page-break-after`** CSS property adjusts page breaks _after_ the current element.", "https://developer.mozilla.org/docs/Web/CSS/page-break-before": "The **`page-break-before`** CSS property adjusts page breaks _before_ the current element.", "https://developer.mozilla.org/docs/Web/CSS/page-break-inside": "The **`page-break-inside`** CSS property adjusts page breaks _inside_ the current element.", @@ -483,6 +485,7 @@ "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi": "The **`unicode-bidi`** CSS property, together with the `direction` property, determines how bidirectional text in a document is handled. For example, if a block of content contains both left-to-right and right-to-left text, the user-agent uses a complex Unicode algorithm to decide how to display the text. The `unicode-bidi` property overrides this algorithm and allows the developer to control the text embedding.", "https://developer.mozilla.org/docs/Web/CSS/user-select": "The **`user-select`** CSS property controls whether the user can select text. This doesn't have any effect on content loaded as part of a browser's user interface (its chrome), except in textboxes.", "https://developer.mozilla.org/docs/Web/CSS/vertical-align": "The **`vertical-align`** CSS property sets vertical alignment of an inline, inline-block or table-cell box.", + "https://developer.mozilla.org/docs/Web/CSS/view-transition-name": "The **`view-transition-name`** CSS property provides the selected element with a distinct identifying name (a ``) and causes it to participate in a separate view transition from the root view transition — or no view transition if the `none` value is specified.", "https://developer.mozilla.org/docs/Web/CSS/visibility": "The **`visibility`** CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a `
`.", "https://developer.mozilla.org/docs/Web/CSS/white-space": "The **`white-space`** CSS property sets how white space inside an element is handled.", "https://developer.mozilla.org/docs/Web/CSS/widows": "The **`widows`** CSS property sets the minimum number of lines in a block container that must be shown at the _top_ of a page, region, or column.",