Skip to content

Commit

Permalink
Add screen wake lock (#1461)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel D. Beck <[email protected]>
  • Loading branch information
foolip and ddbeck authored Jul 26, 2024
1 parent 4c5d7b0 commit 22c285f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
15 changes: 0 additions & 15 deletions features/draft/spec/screen-wake-lock.yml

This file was deleted.

10 changes: 10 additions & 0 deletions features/screen-wake-lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Screen wake lock
description: The `navigator.wakeLock.request("screen")` API prevents the device's screen from dimming or being turned off.
spec: https://w3c.github.io/screen-wake-lock/
caniuse: wake-lock
# TODO: resolve these minor differences with caniuse:
# - Chrome 84 vs. 85
# - Edge 84 vs. 90
status:
compute_from:
- api.WakeLock.request
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
status:
baseline: false
support:
chrome: "88"
chrome_android: "88"
edge: "88"
chrome: "84"
chrome_android: "84"
edge: "84"
firefox: "126"
firefox_android: "126"
safari: "16.4"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "84"
Expand Down Expand Up @@ -43,7 +47,6 @@ compat_features:
# firefox_android: "126"
- api.Permissions.permission_screen-wake-lock

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "88"
Expand Down

0 comments on commit 22c285f

Please sign in to comment.