Skip to content

Commit

Permalink
Add VTTCue settings feature (#1818)
Browse files Browse the repository at this point in the history
* Add features for VTTCue constructor and settings

* Delete features/webvtt-cue-constructor.yml

* Delete features/webvtt-cue-constructor.yml.dist

* Apply suggestions from code review

Co-authored-by: Dietrich Ayala <[email protected]>

* Add selectors

* Use compute_from

* refresh dist

---------

Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Dietrich Ayala <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2024
1 parent 9a85d66 commit c07f170
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
20 changes: 20 additions & 0 deletions features/webvtt-cue-settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: WebVTT cue settings
description: The `VTTCue` API updates various aspects of cues dynamically, such as alignment, size and position.
spec: https://w3c.github.io/webvtt/#the-vttcue-interface
status:
compute_from:
- api.VTTCue.align
- api.VTTCue.line
- api.VTTCue.position
- api.VTTCue.size
- api.VTTCue.snapToLines
- api.VTTCue.vertical
compat_features:
- api.VTTCue.align
- api.VTTCue.line
- api.VTTCue.position
- api.VTTCue.size
- api.VTTCue.snapToLines
- api.VTTCue.vertical
- css.selectors.cue
- css.selectors.cue.selector_argument
56 changes: 56 additions & 0 deletions features/webvtt-cue-settings.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Generated from: webvtt-cue-settings.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "23"
chrome_android: "25"
edge: "79"
firefox: "31"
firefox_android: "31"
safari: "6"
safari_ios: "8"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "23"
# chrome_android: "25"
# edge: "79"
# firefox: "31"
# firefox_android: "31"
# safari: "6"
# safari_ios: "8"
- api.VTTCue.align
- api.VTTCue.line
- api.VTTCue.position
- api.VTTCue.size
- api.VTTCue.snapToLines
- api.VTTCue.vertical

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "26"
# chrome_android: "26"
# edge: "79"
# firefox: "55"
# firefox_android: "55"
# safari: "7"
# safari_ios: "7"
- css.selectors.cue

# baseline: false
# support:
# chrome: "26"
# chrome_android: "26"
# edge: "79"
# safari: "7"
# safari_ios: "7"
- css.selectors.cue.selector_argument

0 comments on commit c07f170

Please sign in to comment.