computed-style.js
Methods
inner computedStyle(el, prop)
[utils/computed-style.js](https://docs.videojs.com/utils_computed-style.js.html)
, [line 23](https://docs.videojs.com/utils_computed-style.js.html#line23)
A safe getComputedStyle.
This is needed because in Firefox, if the player is loaded in an iframe with display:none
, then getComputedStyle
returns null
, so, we do a null-check to make sure that the player doesn’t break in these cases.
Parameters:
Name | Type | Description |
---|---|---|
el | Element | The element you want the computed style of |
prop | string | The property name you want |