Skip to content

Commit 3492678

Browse files
Update draft features (#3135)
1 parent af5836d commit 3492678

File tree

9 files changed

+167
-5
lines changed

9 files changed

+167
-5
lines changed

features/draft/spec/ecmascript.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
draft_date: 2025-07-03
1+
draft_date: 2025-07-10
22
name: ECMAScript® 2026 Language Specification
33
description: TODO
44
spec: https://tc39.es/ecma262/multipage/
@@ -400,6 +400,12 @@ compat_features:
400400
# - javascript.statements.try_catch
401401
# - javascript.statements.var
402402
# - javascript.statements.while
403+
# - Float16Array:
404+
# - javascript.builtins.DataView.getFloat16
405+
# - javascript.builtins.DataView.setFloat16
406+
# - javascript.builtins.Float16Array
407+
# - javascript.builtins.Float16Array.Float16Array
408+
# - javascript.builtins.Math.f16round
403409
# - Date:
404410
# - javascript.builtins.Date
405411
# - javascript.builtins.Date.@@toPrimitive
@@ -452,6 +458,8 @@ compat_features:
452458
# - Error cause:
453459
# - javascript.builtins.Error.Error.options_cause_parameter
454460
# - javascript.builtins.Error.cause
461+
# - Error.isError():
462+
# - javascript.builtins.Error.isError
455463
# - Weak references:
456464
# - javascript.builtins.FinalizationRegistry
457465
# - javascript.builtins.FinalizationRegistry.FinalizationRegistry
@@ -463,8 +471,6 @@ compat_features:
463471
# - javascript.builtins.WeakRef.WeakRef
464472
# - javascript.builtins.WeakRef.WeakRef.symbol_as_target
465473
# - javascript.builtins.WeakRef.deref
466-
# - Float16Array:
467-
# - javascript.builtins.Float16Array.Float16Array
468474
# - Functions:
469475
# - javascript.builtins.Function
470476
# - javascript.builtins.Function.@@hasInstance
@@ -599,6 +605,20 @@ compat_features:
599605
# - javascript.builtins.Iterator.@@iterator
600606
# - javascript.statements.for_of
601607
# - javascript.statements.for_of.closing_iterators
608+
# - Iterator methods:
609+
# - javascript.builtins.Iterator.Iterator
610+
# - javascript.builtins.Iterator.drop
611+
# - javascript.builtins.Iterator.every
612+
# - javascript.builtins.Iterator.filter
613+
# - javascript.builtins.Iterator.find
614+
# - javascript.builtins.Iterator.flatMap
615+
# - javascript.builtins.Iterator.forEach
616+
# - javascript.builtins.Iterator.from
617+
# - javascript.builtins.Iterator.map
618+
# - javascript.builtins.Iterator.reduce
619+
# - javascript.builtins.Iterator.some
620+
# - javascript.builtins.Iterator.take
621+
# - javascript.builtins.Iterator.toArray
602622
# - JSON:
603623
# - javascript.builtins.JSON
604624
# - javascript.builtins.JSON.json_superset
@@ -678,6 +698,8 @@ compat_features:
678698
# - javascript.builtins.Promise.allSettled
679699
# - Promise finally():
680700
# - javascript.builtins.Promise.finally
701+
# - Promise.try():
702+
# - javascript.builtins.Promise.try
681703
# - Promise.withResolvers():
682704
# - javascript.builtins.Promise.withResolvers
683705
# - Proxy and Reflect:
@@ -764,6 +786,8 @@ compat_features:
764786
# - javascript.regular_expressions.unicode_character_class_escape
765787
# - javascript.regular_expressions.wildcard
766788
# - javascript.regular_expressions.word_boundary_assertion
789+
# - RegExp.escape():
790+
# - javascript.builtins.RegExp.escape
767791
# - Set (initial support):
768792
# - javascript.builtins.Set
769793
# - javascript.builtins.Set.@@iterator
@@ -781,6 +805,14 @@ compat_features:
781805
# - javascript.builtins.Set.keys
782806
# - javascript.builtins.Set.size
783807
# - javascript.builtins.Set.values
808+
# - Set methods:
809+
# - javascript.builtins.Set.difference
810+
# - javascript.builtins.Set.intersection
811+
# - javascript.builtins.Set.isDisjointFrom
812+
# - javascript.builtins.Set.isSubsetOf
813+
# - javascript.builtins.Set.isSupersetOf
814+
# - javascript.builtins.Set.symmetricDifference
815+
# - javascript.builtins.Set.union
784816
# - String (initial support):
785817
# - javascript.builtins.String
786818
# - javascript.builtins.String.@@iterator
@@ -894,6 +926,7 @@ compat_features:
894926
# - javascript.grammar.template_literals.template_literal_revision
895927
# - JSON import attributes:
896928
# - javascript.grammar.trailing_commas.trailing_commas_in_dynamic_import
929+
# - javascript.statements.import.import_attributes.type_json
897930
# - Unicode point escapes:
898931
# - javascript.grammar.unicode_point_escapes
899932
# - Top-level await:
@@ -915,6 +948,7 @@ compat_features:
915948
# - javascript.statements.export.namespace
916949
# - javascript.statements.import
917950
# - javascript.statements.import.arbitrary_module_namespace_identifier_names
951+
# - javascript.statements.import.import_attributes
918952
# - javascript.statements.import.worklet_support
919953
# - JavaScript modules in workers:
920954
# - javascript.operators.import.worker_support
@@ -933,6 +967,8 @@ compat_features:
933967
# - Let and const:
934968
# - javascript.statements.const
935969
# - javascript.statements.let
970+
# - CSS import attributes:
971+
# - javascript.statements.import.import_attributes.type_css
936972
# - JavaScript modules in service workers:
937973
# - javascript.statements.import.service_worker_support
938974
# - Optional catch binding:

features/draft/spec/html.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
draft_date: 2025-07-03
1+
draft_date: 2025-07-10
22
name: HTML
33
description: TODO
44
spec: https://html.spec.whatwg.org/multipage/
@@ -100,6 +100,7 @@ compat_features:
100100
- html.elements.iframe.sandbox.allow-pointer-lock
101101
- html.elements.img.usemap.case_sensitive
102102
- html.elements.input.autocomplete
103+
- html.elements.input.type_color.accepts_css_colors
103104
- html.elements.input.type_range.labeled_values
104105
- html.elements.link.rel.icon
105106
- html.elements.script.type.importmap.integrity

features/draft/spec/html.yml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,12 @@ compat_features:
917917
# safari_ios: "9"
918918
- api.HTMLMediaElement.getStartDate
919919

920+
# baseline: false
921+
# support:
922+
# safari: "18.4"
923+
# safari_ios: "18.4"
924+
- html.elements.input.type_color.accepts_css_colors
925+
920926
# baseline: false
921927
# support:
922928
# firefox: "67"

features/draft/spec/mediacapture-surface-control.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
draft_date: 2025-04-09
1+
draft_date: 2025-07-10
22
name: Captured Surface Control
33
description: TODO
44
spec: https://w3c.github.io/mediacapture-surface-control/
@@ -10,3 +10,5 @@ compat_features:
1010
- api.CaptureController.resetZoomLevel
1111
- api.CaptureController.zoomLevel
1212
- api.CaptureController.zoomlevelchange_event
13+
- api.Permissions.permission_captured-surface-control
14+
- http.headers.Permissions-Policy.captured-surface-control

features/draft/spec/mediacapture-surface-control.yml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ compat_features:
1414
- api.CaptureController.resetZoomLevel
1515
- api.CaptureController.zoomLevel
1616
- api.CaptureController.zoomlevelchange_event
17+
- api.Permissions.permission_captured-surface-control
18+
- http.headers.Permissions-Policy.captured-surface-control
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
draft_date: 2025-07-10
2+
name: Screen Capture
3+
description: TODO
4+
spec: https://w3c.github.io/mediacapture-screen-share/
5+
compat_features:
6+
- api.MediaStreamTrack.getSettings.return_object_property_screenPixelRatio
7+
8+
# The following features in the spec are already part of web-features:
9+
# - Screen capture:
10+
# - api.CaptureController
11+
# - api.CaptureController.CaptureController
12+
# - api.CaptureController.setFocusBehavior
13+
# - api.MediaDevices.getDisplayMedia
14+
# - api.MediaDevices.getDisplayMedia.audio_capture_support
15+
# - api.MediaDevices.getDisplayMedia.controller_option
16+
# - api.MediaDevices.getDisplayMedia.monitorTypeSurfaces_option
17+
# - api.MediaDevices.getDisplayMedia.selfBrowserSurface_option
18+
# - api.MediaDevices.getDisplayMedia.surfaceSwitching_option
19+
# - api.MediaDevices.getDisplayMedia.systemAudio_option
20+
# - api.MediaStreamTrack.applyConstraints.displaySurface_constraint
21+
# - api.MediaStreamTrack.applyConstraints.logicalSurface_constraint
22+
# - api.MediaStreamTrack.applyConstraints.suppressLocalAudioPlayback_constraint
23+
# - html.elements.iframe.allow.display-capture
24+
# - http.headers.Permissions-Policy.display-capture
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Generated from: screen-capture.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "136"
8+
edge: "136"
9+
compat_features:
10+
- api.MediaStreamTrack.getSettings.return_object_property_screenPixelRatio
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
draft_date: 2025-07-10
2+
name: Trusted Types
3+
description: TODO
4+
spec: https://w3c.github.io/trusted-types/dist/spec/
5+
compat_features:
6+
- api.DOMParser.parseFromString.enforces_trusted_types
7+
- api.Document.parseHTMLUnsafe_static.enforces_trusted_types
8+
- api.Element.insertAdjacentHTML.enforces_trusted_types
9+
- api.Element.outerHTML.enforces_trusted_types
10+
- api.Element.setHTMLUnsafe.enforces_trusted_types
11+
- api.HTMLIFrameElement.srcdoc.enforces_trusted_types
12+
- api.Range.createContextualFragment.enforces_trusted_types
13+
- api.ShadowRoot.setHTMLUnsafe.enforces_trusted_types
14+
15+
# The following features in the spec are already part of web-features:
16+
# - Trusted types:
17+
# - api.Element.innerHTML.enforces_trusted_types
18+
# - api.HTMLElement.innerText.scripts_accept_TrustedScript
19+
# - api.HTMLScriptElement.src.accepts_TrustedScriptURL
20+
# - api.HTMLScriptElement.text.accepts_TrustedScript
21+
# - api.Node.textContent.scripts_accept_TrustedScript
22+
# - api.ShadowRoot.innerHTML.enforces_trusted_types
23+
# - api.TrustedHTML
24+
# - api.TrustedHTML.toJSON
25+
# - api.TrustedHTML.toString
26+
# - api.TrustedScript
27+
# - api.TrustedScript.toJSON
28+
# - api.TrustedScript.toString
29+
# - api.TrustedScriptURL
30+
# - api.TrustedScriptURL.toJSON
31+
# - api.TrustedScriptURL.toString
32+
# - api.TrustedTypePolicy
33+
# - api.TrustedTypePolicy.createHTML
34+
# - api.TrustedTypePolicy.createScript
35+
# - api.TrustedTypePolicy.createScriptURL
36+
# - api.TrustedTypePolicy.name
37+
# - api.TrustedTypePolicyFactory
38+
# - api.TrustedTypePolicyFactory.createPolicy
39+
# - api.TrustedTypePolicyFactory.defaultPolicy
40+
# - api.TrustedTypePolicyFactory.emptyHTML
41+
# - api.TrustedTypePolicyFactory.emptyScript
42+
# - api.TrustedTypePolicyFactory.getAttributeType
43+
# - api.TrustedTypePolicyFactory.getPropertyType
44+
# - api.TrustedTypePolicyFactory.isHTML
45+
# - api.TrustedTypePolicyFactory.isScript
46+
# - api.TrustedTypePolicyFactory.isScriptURL
47+
# - api.setInterval.code_param_accepts_trustedScript
48+
# - api.setTimeout.code_param_accepts_trustedScript
49+
# - api.trustedTypes
50+
# - http.headers.Content-Security-Policy.require-trusted-types-for
51+
# - http.headers.Content-Security-Policy.trusted-types
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated from: trusted-types.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "124"
8+
chrome_android: "124"
9+
edge: "124"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "83"
14+
# chrome_android: "83"
15+
# edge: "83"
16+
- api.DOMParser.parseFromString.enforces_trusted_types
17+
- api.Element.insertAdjacentHTML.enforces_trusted_types
18+
- api.Element.outerHTML.enforces_trusted_types
19+
- api.HTMLIFrameElement.srcdoc.enforces_trusted_types
20+
- api.Range.createContextualFragment.enforces_trusted_types
21+
22+
# ⬇️ Same status as overall feature ⬇️
23+
# baseline: false
24+
# support:
25+
# chrome: "124"
26+
# chrome_android: "124"
27+
# edge: "124"
28+
- api.Document.parseHTMLUnsafe_static.enforces_trusted_types
29+
- api.Element.setHTMLUnsafe.enforces_trusted_types
30+
- api.ShadowRoot.setHTMLUnsafe.enforces_trusted_types

0 commit comments

Comments
 (0)