Skip to content

Commit

Permalink
Add screen wake lock
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Jul 18, 2024
1 parent 79e48ad commit 2500c9b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 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 devices'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,12 +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

0 comments on commit 2500c9b

Please sign in to comment.