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
According to the last Chrome’s or Firefox’s code inspector, when we switch from RGBA to HSLA we see that rgba (255, 255, 255, .9) is converted to hsla (0deg, 0%, 100%, .9) in the inpector.
As combining HSLA + optional zero unit, don’t rgba(255,255,255,.9)(20 bytes) would be the same as hsla(0,0,100%,.9)(17 bytes) ?
There is currently no assumption in CSSO that hsl / hsla may be shorter than the rgb / rgba version. Such optimisation can be added. Personally I have no time for this now, but a PR is very welcome :)
Paste here : https://css.github.io/csso/csso.html (version 4.0.3)
The following css :
in Beautify’s mode you get something like :
According to the last Chrome’s or Firefox’s code inspector, when we switch from RGBA to HSLA we see that
rgba (255, 255, 255, .9)
is converted tohsla (0deg, 0%, 100%, .9)
in the inpector.As combining HSLA + optional zero unit, don’t
rgba(255,255,255,.9)
(20 bytes) would be the same ashsla(0,0,100%,.9)
(17 bytes) ?Edit : removed flex question according to #410
The text was updated successfully, but these errors were encountered: