Skip to content

Commit

Permalink
fix(player): unsupported styles in captions file
Browse files Browse the repository at this point in the history
closes #917
  • Loading branch information
mihar-22 committed Oct 2, 2023
1 parent e65ed2e commit 475c089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vidstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Vidstack is [MIT licensed](./LICENSE).
[vime]: https://github.com/vime-js/vime
[plyr]: https://github.com/sampotts/plyr
[package]: https://www.npmjs.com/package/vidstack
[package-badge]: https://img.shields.io/npm/v/vidstack?style=flat-square
[package-badge]: https://img.shields.io/npm/v/vidstack/next?style=flat-square
[jsdelivr]: https://www.jsdelivr.com/package/npm/vidstack
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/vidstack/badge
[discord]: https://discord.gg/QAjfh2gZE4
Expand Down
6 changes: 4 additions & 2 deletions packages/vidstack/player/styles/default/captions.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@
top: calc(
var(
--region-top,
var(--overlay-height) * var(--region-viewport-anchor-y) / 100 - var(--region-height) *
var(--region-anchor-y) / 100
calc(
calc(calc(var(--overlay-height) * var(--region-viewport-anchor-y)) / 100) -
calc(var(--region-height) * calc(var(--region-anchor-y) / 100))
)
)
);
left: var(
Expand Down

0 comments on commit 475c089

Please sign in to comment.