You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
We see that we expect colorString to be valued at either rgb(...) or rgba(...). However, in FF, elements will have a default backgroundColor of "transparent".
This causes parseColor (and consequently, getBgColor) to return null, eventually causing getContrastRatioForElement to return null.
Hey @alice,
The following code segment:
Will return
null
ifbgColor
is falsy. Looking ataxs.color.parseColor
:We see that we expect
colorString
to be valued at eitherrgb(...)
orrgba(...)
. However, in FF, elements will have a defaultbackgroundColor
of"transparent"
.This causes
parseColor
(and consequently,getBgColor
) to returnnull
, eventually causinggetContrastRatioForElement
to returnnull
.You can see the discrepancy in this jsbin by running it in both Chrome and FF.
The text was updated successfully, but these errors were encountered: