Previously, the bg-opacity support was limited to rgb, #rgb, and #rrggbb.
The logic here will take an existing opacity (if it exists), and scale it by the bg-opacity value. E.g., if the bg color is rgba(100,0,0, 0.6) and bg-opacity:50 is applied, the resulting bg color is rgba(100,0,0, 0.3).
Address #25 by adding
bg-opacity
support for:Previously, the
bg-opacity
support was limited torgb
,#rgb
, and#rrggbb
.The logic here will take an existing opacity (if it exists), and scale it by the
bg-opacity
value. E.g., if the bg color isrgba(100,0,0, 0.6)
andbg-opacity:50
is applied, the resulting bg color isrgba(100,0,0, 0.3)
.