computed-style.js
Methods
-
inner computedStyle(el, prop)
-
A safe getComputedStyle.
This is needed because in Firefox, if the player is loaded in an iframe with
display:none
, thengetComputedStyle
returnsnull
, 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