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, thengetComputedStylereturnsnull, so, we do a null-check to make sure that the player doesn't break in these cases.Parameters:
Name Type Description elElement The element you want the computed style of
propstring The property name you want