Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
17 changes: 17 additions & 0 deletions features/battery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Battery status
description: The `navigator.getBattery()` API obtains information about the device's battery, including charge level and status. Also known as the Battery API.
spec: https://w3c.github.io/battery/
caniuse: battery-status
status:
compute_from: api.Navigator.getBattery
compat_features:
- api.BatteryManager
- api.BatteryManager.charging
- api.BatteryManager.chargingchange_event
- api.BatteryManager.chargingTime
- api.BatteryManager.chargingtimechange_event
- api.BatteryManager.dischargingTime
- api.BatteryManager.dischargingtimechange_event
- api.BatteryManager.level
- api.BatteryManager.levelchange_event
- api.Navigator.getBattery
32 changes: 32 additions & 0 deletions features/battery.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated from: battery.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "38"
chrome_android: "38"
edge: "79"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "38"
# chrome_android: "38"
# edge: "79"
- api.BatteryManager
- api.BatteryManager.charging
- api.BatteryManager.chargingchange_event
- api.BatteryManager.chargingtimechange_event
- api.BatteryManager.dischargingtimechange_event
- api.BatteryManager.level
- api.BatteryManager.levelchange_event
- api.Navigator.getBattery

# baseline: false
# support:
# chrome: "38"
# chrome_android: "42"
# edge: "79"
- api.BatteryManager.chargingTime
- api.BatteryManager.dischargingTime