Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more HTML spec keys #2405

Merged
merged 22 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions features/beforeunload.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Beforeunload
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically this is used to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost."
spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-beforeunloadevent-interface
status:
compute_from: api.Window.beforeunload_event
autonome marked this conversation as resolved.
Show resolved Hide resolved
# The commented out keys below are deprecated.
compat_features:
- api.BeforeUnloadEvent
- api.BeforeUnloadEvent.user_interaction
- api.Window.beforeunload_event
#- api.Window.beforeunload_event.event_returnvalue_activation
#- api.Window.beforeunload_event.generic_string_displayed
Expand Down
32 changes: 24 additions & 8 deletions features/beforeunload.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "119"
chrome_android: "119"
edge: "119"
firefox: "6"
firefox_android: "6"
safari: "11"
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "3"
safari_ios: "1"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
Expand All @@ -37,7 +41,19 @@ compat_features:
# safari_ios: "7"
- api.BeforeUnloadEvent

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "60"
# chrome_android: "60"
# edge: "79"
# firefox: "44"
# firefox_android: "44"
# safari: "11"
# safari_ios: "11"
- api.BeforeUnloadEvent.user_interaction

# baseline: false
# support:
# chrome: "119"
Expand Down
2 changes: 2 additions & 0 deletions features/bfcache-blocking-reasons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ group: performance
compat_features:
- api.PerformanceNavigationTiming.notRestoredReasons
- api.NotRestoredReasonDetails
- api.NotRestoredReasonDetails.toJSON
- api.NotRestoredReasonDetails.reason
- api.NotRestoredReasons
- api.NotRestoredReasons.children
- api.NotRestoredReasons.id
- api.NotRestoredReasons.name
- api.NotRestoredReasons.reasons
- api.NotRestoredReasons.src
- api.NotRestoredReasons.toJSON
- api.NotRestoredReasons.url
2 changes: 2 additions & 0 deletions features/bfcache-blocking-reasons.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ status:
compat_features:
- api.NotRestoredReasonDetails
- api.NotRestoredReasonDetails.reason
- api.NotRestoredReasonDetails.toJSON
- api.NotRestoredReasons
- api.NotRestoredReasons.children
- api.NotRestoredReasons.id
- api.NotRestoredReasons.name
- api.NotRestoredReasons.reasons
- api.NotRestoredReasons.src
- api.NotRestoredReasons.toJSON
- api.NotRestoredReasons.url
- api.PerformanceNavigationTiming.notRestoredReasons
21 changes: 21 additions & 0 deletions features/canvas-2d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,29 @@ compat_features:
- api.ImageData.data
- api.ImageData.height
- api.ImageData.width
- api.Path2D
- api.Path2D.Path2D
- api.Path2D.addPath
- api.Path2D.arc
- api.Path2D.arcTo
- api.Path2D.bezierCurveTo
- api.Path2D.closePath
- api.Path2D.ellipse
- api.Path2D.lineTo
- api.Path2D.moveTo
- api.Path2D.quadraticCurveTo
- api.Path2D.rect
- api.Path2D.roundRect
- api.TextMetrics
- api.TextMetrics.actualBoundingBoxAscent
- api.TextMetrics.actualBoundingBoxDescent
- api.TextMetrics.actualBoundingBoxLeft
- api.TextMetrics.actualBoundingBoxRight
- api.TextMetrics.alphabeticBaseline
- api.TextMetrics.emHeightAscent
- api.TextMetrics.emHeightDescent
- api.TextMetrics.fontBoundingBoxAscent
- api.TextMetrics.fontBoundingBoxDescent
- api.TextMetrics.hangingBaseline
- api.TextMetrics.ideographicBaseline
- api.TextMetrics.width
98 changes: 98 additions & 0 deletions features/canvas-2d.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,41 @@ compat_features:
- api.CanvasRenderingContext2D.isPointInPath.path_parameter
- api.CanvasRenderingContext2D.stroke.path_parameter

# baseline: high
# baseline_low_date: 2016-08-02
# baseline_high_date: 2019-02-02
# support:
# chrome: "36"
# chrome_android: "36"
# edge: "14"
# firefox: "31"
# firefox_android: "31"
# safari: "8"
# safari_ios: "8"
- api.Path2D
- api.Path2D.Path2D
- api.Path2D.arc
- api.Path2D.arcTo
- api.Path2D.bezierCurveTo
- api.Path2D.closePath
- api.Path2D.lineTo
- api.Path2D.moveTo
- api.Path2D.quadraticCurveTo
- api.Path2D.rect

# baseline: high
# baseline_low_date: 2016-08-02
# baseline_high_date: 2019-02-02
# support:
# chrome: "36"
# chrome_android: "36"
# edge: "14"
# firefox: "48"
# firefox_android: "48"
# safari: "9"
# safari_ios: "9"
- api.Path2D.ellipse

# baseline: high
# baseline_low_date: 2016-08-02
# baseline_high_date: 2019-02-02
Expand Down Expand Up @@ -317,6 +352,19 @@ compat_features:
# safari_ios: "11.3"
- api.CanvasPattern.setTransform

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "68"
# chrome_android: "68"
# edge: "79"
# firefox: "34"
# firefox_android: "34"
# safari: "9"
# safari_ios: "9"
- api.Path2D.addPath

# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
Expand Down Expand Up @@ -344,6 +392,22 @@ compat_features:
# safari_ios: "11.3"
- api.CanvasPattern.setTransform.dommatrix

# baseline: high
# baseline_low_date: 2020-07-28
# baseline_high_date: 2023-01-28
# support:
# chrome: "77"
# chrome_android: "77"
# edge: "79"
# firefox: "74"
# firefox_android: "79"
# safari: "11.1"
# safari_ios: "11.3"
- api.TextMetrics.actualBoundingBoxAscent
- api.TextMetrics.actualBoundingBoxDescent
- api.TextMetrics.actualBoundingBoxLeft
- api.TextMetrics.actualBoundingBoxRight

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
Expand All @@ -370,6 +434,31 @@ compat_features:
# safari_ios: "9"
- api.CanvasRenderingContext2D.direction

# baseline: low
# baseline_low_date: 2023-04-11
# support:
# chrome: "99"
# chrome_android: "99"
# edge: "99"
# firefox: "112"
# firefox_android: "112"
# safari: "16"
# safari_ios: "16"
- api.Path2D.roundRect

# baseline: low
# baseline_low_date: 2023-08-01
# support:
# chrome: "87"
# chrome_android: "87"
# edge: "87"
# firefox: "116"
# firefox_android: "116"
# safari: "11.1"
# safari_ios: "11.3"
- api.TextMetrics.fontBoundingBoxAscent
- api.TextMetrics.fontBoundingBoxDescent

# baseline: low
# baseline_low_date: 2023-08-29
# support:
Expand Down Expand Up @@ -469,3 +558,12 @@ compat_features:
# firefox_android: "117"
- api.CanvasRenderingContext2D.fontStretch
- api.CanvasRenderingContext2D.fontVariantCaps

# baseline: false
# support:
# firefox: "118"
# firefox_android: "118"
# safari: "11.1"
# safari_ios: "11.3"
- api.TextMetrics.emHeightAscent
- api.TextMetrics.emHeightDescent
1 change: 1 addition & 0 deletions features/channel-messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ compat_features:
- api.MessagePort.message_event
- api.MessagePort.postMessage
- api.MessagePort.start
- api.MessagePort.worker_support
14 changes: 14 additions & 0 deletions features/channel-messaging.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,17 @@ compat_features:
- api.MessagePort.message_event
- api.MessagePort.postMessage
- api.MessagePort.start

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-09-22
# baseline_high_date: 2018-03-22
# support:
# chrome: "4"
# chrome_android: "18"
# edge: "12"
# firefox: "41"
# firefox_android: "41"
# safari: "5"
# safari_ios: "4.2"
- api.MessagePort.worker_support
3 changes: 3 additions & 0 deletions features/dom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ compat_features:
- api.Document.createTreeWalker.whatToShow_filter_parameters_optional
- api.Document.currentScript
- api.Document.defaultView
- api.Document.designMode
autonome marked this conversation as resolved.
Show resolved Hide resolved
- api.Document.dir
- api.Document.doctype
- api.Document.documentElement
Expand Down Expand Up @@ -123,6 +124,7 @@ compat_features:
- api.Document.replaceChildren
- api.Document.scripts
- api.Document.title
- api.Document.writeln
- api.DocumentFragment
- api.DocumentFragment.DocumentFragment
- api.DocumentFragment.append
Expand All @@ -148,6 +150,7 @@ compat_features:
- api.Element.append
- api.Element.attributes
- api.Element.before
- api.Element.beforematch_event
autonome marked this conversation as resolved.
Show resolved Hide resolved
- api.Element.childElementCount
- api.Element.children
- api.Element.classList
Expand Down
9 changes: 9 additions & 0 deletions features/dom.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ compat_features:
# firefox_android: "4"
# safari: "1.2"
# safari_ios: "1"
- api.Document.designMode
- api.Node.childNodes

# baseline: high
Expand Down Expand Up @@ -886,6 +887,7 @@ compat_features:
# safari_ios: "11"
- api.Document.close
- api.Document.open
- api.Document.writeln

# baseline: high
# baseline_low_date: 2018-04-30
Expand Down Expand Up @@ -1228,3 +1230,10 @@ compat_features:
# firefox: "126"
# firefox_android: "126"
- api.Element.currentCSSZoom

# baseline: false
# support:
# chrome: "102"
# chrome_android: "102"
# edge: "102"
- api.Element.beforematch_event
3 changes: 3 additions & 0 deletions features/form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ compat_features:
- html.elements.form.novalidate
- html.elements.form.rel
- html.elements.form.target
- api.SubmitEvent
- api.SubmitEvent.SubmitEvent
- api.SubmitEvent.submitter
27 changes: 27 additions & 0 deletions features/form.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,33 @@ compat_features:
- api.FormDataEvent.formData
- api.HTMLFormElement.formdata_event

# baseline: high
# baseline_low_date: 2021-09-20
# baseline_high_date: 2024-03-20
# support:
# chrome: "81"
# chrome_android: "81"
# edge: "81"
# firefox: "75"
# firefox_android: "79"
# safari: "15"
# safari_ios: "15"
- api.SubmitEvent
- api.SubmitEvent.SubmitEvent

# baseline: high
# baseline_low_date: 2022-03-14
# baseline_high_date: 2024-09-14
# support:
# chrome: "81"
# chrome_android: "81"
# edge: "81"
# firefox: "75"
# firefox_android: "79"
# safari: "15.4"
# safari_ios: "15.4"
- api.SubmitEvent.submitter

# baseline: low
# baseline_low_date: 2022-09-12
# support:
Expand Down
6 changes: 6 additions & 0 deletions features/gethtml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: getHTML
description: The `getHTML()` method of `Element` and `ShadowRoot` objects serializes an element's DOM to an HTML string.
spec: https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#html-serialization-methods
compat_features:
- api.Element.getHTML
- api.ShadowRoot.getHTML
17 changes: 17 additions & 0 deletions features/gethtml.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: gethtml.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: low
baseline_low_date: 2024-09-16
support:
chrome: "125"
chrome_android: "125"
edge: "125"
firefox: "128"
firefox_android: "128"
safari: "18"
safari_ios: "18"
compat_features:
- api.Element.getHTML
- api.ShadowRoot.getHTML
4 changes: 4 additions & 0 deletions features/history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ compat_features:
- api.History.replaceState
- api.History.scrollRestoration
- api.History.state
- api.PopStateEvent
- api.PopStateEvent.PopStateEvent
- api.PopStateEvent.hasUAVisualTransition
- api.PopStateEvent.state
- api.Window.history
- api.Window.popstate_event
Loading
Loading