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 features and keys from CSSOM View Module spec #2363

Merged
merged 38 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
14fcf3c
Add this epic bucket of stuff
autonome Nov 29, 2024
e63b16a
build
autonome Nov 29, 2024
9fd847d
start moving keys out
autonome Nov 29, 2024
ae6bd50
scroll elements and more
autonome Nov 29, 2024
8003676
move caretposition
autonome Nov 29, 2024
db614e0
img keys
autonome Nov 29, 2024
1b07f0d
add matchmedia, devicepixelratio
autonome Nov 29, 2024
7a5768a
split out screen
autonome Nov 29, 2024
252046c
remove commented keys in other features
autonome Nov 29, 2024
c3c4c12
more window-management properties
autonome Nov 29, 2024
79e3789
move element and window keys
autonome Nov 29, 2024
2246287
ok put the spec draft back
autonome Nov 29, 2024
755a2eb
revert draft notes
autonome Nov 29, 2024
eb43322
Merge branch 'main' into cssom
autonome Nov 29, 2024
b649b28
Update features/screen.yml
autonome Dec 4, 2024
3d93fac
Update features/devicepixelratio.yml
autonome Dec 4, 2024
4a4eaf6
Merge branch 'main' into cssom
autonome Dec 5, 2024
cdf15ca
Merge branch 'cssom' of https://github.com/autonome/web-features into…
autonome Dec 5, 2024
c9e8cc0
Merge branch 'main' into cssom
autonome Dec 6, 2024
076b964
Update features/scroll-elements.yml
autonome Dec 6, 2024
40617c8
Merge branch 'cssom' of https://github.com/autonome/web-features into…
autonome Dec 6, 2024
f200510
update desc
autonome Dec 6, 2024
f6b0681
Update features/devicepixelratio.yml
autonome Dec 6, 2024
5227049
Merge branch 'main' into cssom
autonome Dec 9, 2024
4d2056a
Merge branch 'cssom' of https://github.com/autonome/web-features into…
autonome Dec 9, 2024
479e5a0
Merge branch 'main' into cssom
autonome Dec 10, 2024
2f500df
Update features/matchmedia.yml
autonome Dec 10, 2024
7b4ff3a
Update features/matchmedia.yml
autonome Dec 10, 2024
2d8a0cc
Update features/scroll-elements.yml
autonome Dec 10, 2024
3a48d09
Update features/scroll-elements.yml
autonome Dec 10, 2024
29badfe
Merge branch 'cssom' of https://github.com/autonome/web-features into…
autonome Dec 10, 2024
6efdc80
regen
autonome Dec 10, 2024
85c8da0
caretposition per review
autonome Dec 10, 2024
25ec6df
resolve
autonome Dec 18, 2024
2c5f163
Merge branch 'main' into cssom
autonome Dec 19, 2024
2b47f26
Update features/document-caretpositionfrompoint.yml
autonome Dec 19, 2024
65ebb86
Merge branch 'cssom' of https://github.com/autonome/web-features into…
autonome Dec 19, 2024
3d8ebdc
regen
autonome Dec 19, 2024
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
1 change: 1 addition & 0 deletions features/attribution-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compat_features:
- api.HTMLImageElement.attributionSrc
- api.HTMLScriptElement.attributionSrc
- api.Request.Request.init_attributionReporting_parameter
- api.Window.open.features_parameter_attributionsrc
- api.XMLHttpRequest.setAttributionReporting
- api.fetch.init_attributionReporting_parameter
- html.elements.a.attributionsrc
Expand Down
1 change: 1 addition & 0 deletions features/attribution-reporting.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ compat_features:
- api.HTMLImageElement.attributionSrc
- api.HTMLScriptElement.attributionSrc
- api.Request.Request.init_attributionReporting_parameter
- api.Window.open.features_parameter_attributionsrc
- api.XMLHttpRequest.setAttributionReporting
- api.fetch.init_attributionReporting_parameter
- html.elements.a.attributionsrc
Expand Down
6 changes: 6 additions & 0 deletions features/devicepixelratio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: devicePixelRatio
description: The `window.devicePixelRatio` read-only property returns the ratio of the size of one CSS pixel to the vertical size of one physical pixel on the current display device.
spec: https://drafts.csswg.org/cssom-view-1/#dom-window-devicepixelratio
caniuse: devicepixelratio
compat_features:
- api.Window.devicePixelRatio
13 changes: 13 additions & 0 deletions features/devicepixelratio.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated from: devicepixelratio.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "18"
firefox_android: "18"
compat_features:
- api.Window.devicePixelRatio
4 changes: 4 additions & 0 deletions features/document-caretpositionfrompoint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ name: document.caretPositionFromPoint()
description: The `document.caretPositionFromPoint()` method finds an insertion point, represented by a DOM node and an offset within that node, for given coordinates in the viewport.
spec: https://drafts.csswg.org/cssom-view-1/#dom-document-caretpositionfrompoint
compat_features:
- api.CaretPosition
- api.CaretPosition.getClientRect
- api.CaretPosition.offset
- api.CaretPosition.offsetNode
- api.Document.caretPositionFromPoint
24 changes: 22 additions & 2 deletions features/document-caretpositionfrompoint.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,27 @@ status:
chrome: "128"
chrome_android: "128"
edge: "128"
firefox: "20"
firefox_android: "20"
firefox: "23"
firefox_android: "23"
compat_features:
# baseline: false
# support:
# chrome: "128"
# chrome_android: "128"
# edge: "128"
# firefox: "20"
# firefox_android: "20"
- api.CaretPosition
- api.CaretPosition.offset
- api.CaretPosition.offsetNode
- api.Document.caretPositionFromPoint

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "128"
# chrome_android: "128"
# edge: "128"
# firefox: "23"
# firefox_android: "23"
- api.CaretPosition.getClientRect
12 changes: 12 additions & 0 deletions features/dom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,20 @@ compat_features:
- api.Element.children
- api.Element.classList
- api.Element.className
- api.Element.clientHeight
- api.Element.clientLeft
- api.Element.clientTop
- api.Element.clientWidth
- api.Element.closest
- api.Element.currentCSSZoom
- api.Element.firstElementChild
- api.Element.getAttribute
- api.Element.getAttributeNS
- api.Element.getAttributeNames
- api.Element.getAttributeNode
- api.Element.getAttributeNodeNS
- api.Element.getBoundingClientRect
- api.Element.getClientRects
- api.Element.getElementsByClassName
- api.Element.getElementsByTagName
- api.Element.getElementsByTagName.all_elements_selector
Expand Down Expand Up @@ -204,6 +211,11 @@ compat_features:
- api.HTMLElement.dir
- api.HTMLElement.hidden
- api.HTMLElement.innerText
- api.HTMLElement.offsetHeight
- api.HTMLElement.offsetLeft
- api.HTMLElement.offsetParent
- api.HTMLElement.offsetTop
- api.HTMLElement.offsetWidth
- api.HTMLElement.outerText
- api.NamedNodeMap
- api.NamedNodeMap.getNamedItem
Expand Down
32 changes: 32 additions & 0 deletions features/dom.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@ compat_features:
- api.DocumentType.name
- api.DocumentType.publicId
- api.DocumentType.systemId
- api.Element.clientHeight
- api.Element.clientWidth
- api.HTMLElement.dir
- api.HTMLElement.offsetHeight
- api.HTMLElement.offsetLeft
- api.HTMLElement.offsetParent
- api.HTMLElement.offsetTop
- api.HTMLElement.offsetWidth
- api.Node.isDefaultNamespace
- api.Node.isEqualNode
- api.Node.lookupNamespaceURI
Expand Down Expand Up @@ -250,6 +257,20 @@ compat_features:
# safari_ios: "5"
- api.DOMStringList.contains

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "12"
# firefox: "3"
# firefox_android: "4"
# safari: "3"
# safari_ios: "1"
- api.Element.clientLeft
- api.Element.clientTop

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
Expand Down Expand Up @@ -446,6 +467,8 @@ compat_features:
# safari_ios: "3.2"
- api.Document.activeElement
- api.Document.hasFocus
- api.Element.getBoundingClientRect
- api.Element.getClientRects

# baseline: high
# baseline_low_date: 2015-07-29
Expand Down Expand Up @@ -1196,3 +1219,12 @@ compat_features:
# firefox_android: "50"
- api.Document.createElement.options_parameter
- api.Document.createElementNS.options_parameter

# baseline: false
# support:
# chrome: "128"
# chrome_android: "128"
# edge: "128"
# firefox: "126"
# firefox_android: "126"
- api.Element.currentCSSZoom
2 changes: 2 additions & 0 deletions features/img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ compat_features:
- api.HTMLImageElement.naturalWidth
- api.HTMLImageElement.src
- api.HTMLImageElement.width
- api.HTMLImageElement.x
- api.HTMLImageElement.y
- html.elements.img
- html.elements.img.alt
- html.elements.img.crossorigin
Expand Down
14 changes: 14 additions & 0 deletions features/img.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,20 @@ compat_features:
- html.elements.img.height
- html.elements.img.width

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "12"
# firefox: "14"
# firefox_android: "14"
# safari: "3"
# safari_ios: "1"
- api.HTMLImageElement.x
- api.HTMLImageElement.y

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
Expand Down
17 changes: 17 additions & 0 deletions features/matchmedia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: matchMedia
description: The `window.matchMedia()` method checks whether a media query applies to the document.
spec: https://drafts.csswg.org/cssom-view-1/#dom-window-matchmedia
caniuse: matchmedia
autonome marked this conversation as resolved.
Show resolved Hide resolved
status:
compute_from: api.Window.matchMedia
compat_features:
- api.MediaQueryList
- api.MediaQueryList.EventTarget_inheritance
- api.MediaQueryList.change_event
- api.MediaQueryList.matches
- api.MediaQueryList.media
- api.MediaQueryListEvent
- api.MediaQueryListEvent.MediaQueryListEvent
- api.MediaQueryListEvent.matches
- api.MediaQueryListEvent.media
- api.Window.matchMedia
62 changes: 62 additions & 0 deletions features/matchmedia.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Generated from: matchmedia.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "9"
chrome_android: "18"
edge: "12"
firefox: "6"
firefox_android: "6"
safari: "5.1"
safari_ios: "5"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "9"
# chrome_android: "18"
# edge: "12"
# firefox: "6"
# firefox_android: "6"
# safari: "5.1"
# safari_ios: "5"
- api.MediaQueryList
- api.MediaQueryList.matches
- api.MediaQueryList.media
- api.Window.matchMedia

# baseline: high
# baseline_low_date: 2020-09-16
# baseline_high_date: 2023-03-16
# support:
# chrome: "39"
# chrome_android: "39"
# edge: "16"
# firefox: "55"
# firefox_android: "55"
# safari: "14"
# safari_ios: "14"
- api.MediaQueryList.EventTarget_inheritance

# baseline: high
# baseline_low_date: 2020-09-16
# baseline_high_date: 2023-03-16
# support:
# chrome: "39"
# chrome_android: "39"
# edge: "79"
# firefox: "55"
# firefox_android: "55"
# safari: "14"
# safari_ios: "14"
- api.MediaQueryList.change_event
- api.MediaQueryListEvent
- api.MediaQueryListEvent.MediaQueryListEvent
- api.MediaQueryListEvent.matches
- api.MediaQueryListEvent.media
11 changes: 11 additions & 0 deletions features/screen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Screen
description: The `window.screen` property contains information about the screen of the output device that the referenced `window` is being rendered on.
spec: https://drafts.csswg.org/cssom-view-1/#screen
compat_features:
- api.Screen
- api.Screen.availHeight
- api.Screen.availWidth
- api.Screen.colorDepth
- api.Screen.height
- api.Screen.pixelDepth
- api.Screen.width
23 changes: 23 additions & 0 deletions features/screen.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated from: screen.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2015-07-29
baseline_high_date: 2018-01-29
support:
chrome: "1"
chrome_android: "18"
edge: "12"
firefox: "1"
firefox_android: "4"
safari: "1"
safari_ios: "1"
compat_features:
- api.Screen
- api.Screen.availHeight
- api.Screen.availWidth
- api.Screen.colorDepth
- api.Screen.height
- api.Screen.pixelDepth
- api.Screen.width
44 changes: 44 additions & 0 deletions features/scroll-elements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Scroll methods on elements
description: The `scroll()` and `scrollBy()` methods change the scroll position of overflow content within an element. Similar to setting `scrollTop` and `scrollLeft` properties, but with options setting whether the scroll should animate smoothly or jump. Note that `scrollTo()` is an alias for `scroll()`.
spec: https://drafts.csswg.org/cssom-view-1/#dom-element-scroll
caniuse: element-scroll-methods
status:
compute_from:
- api.Element.scroll
autonome marked this conversation as resolved.
Show resolved Hide resolved
- api.Element.scroll.options_behavior_parameter
compat_features:
- api.Document.scroll_event
- api.Document.scrollingElement
- api.Element.scroll
- api.Element.scroll.options_behavior_parameter
- api.Element.scroll.options_left_parameter
- api.Element.scroll.options_top_parameter
- api.Element.scrollBy
- api.Element.scrollBy.options_behavior_parameter
- api.Element.scrollBy.options_left_parameter
- api.Element.scrollBy.options_top_parameter
- api.Element.scrollHeight
- api.Element.scrollLeft
- api.Element.scrollTo
- api.Element.scrollTo.options_behavior_parameter
- api.Element.scrollTo.options_left_parameter
- api.Element.scrollTo.options_top_parameter
- api.Element.scrollTop
- api.Element.scrollWidth
- api.Element.scroll_event
- api.Window.scroll
- api.Window.scroll.options_behavior_parameter
- api.Window.scroll.options_left_parameter
- api.Window.scroll.options_top_parameter
- api.Window.scrollBy
- api.Window.scrollBy.options_behavior_parameter
- api.Window.scrollBy.options_left_parameter
- api.Window.scrollBy.options_top_parameter
- api.Window.scrollTo
- api.Window.scrollTo.options_behavior_parameter
- api.Window.scrollTo.options_left_parameter
- api.Window.scrollTo.options_top_parameter
- api.Window.scrollX
- api.Window.scrollX.subpixel_precision
- api.Window.scrollY
- api.Window.scrollY.subpixel_precision
Loading
Loading