Re: [csswg-drafts] [css-scrollbars] What do (semi) transparent colors mean for scrollbar-color (#9853)

I initially preferred 1b, as it seemed fairly intuitive for the author. But then, I think a common case would be having a translucent thumb color but still have the white highlights and dark shadows of the UA shading be at full opacity. So I think 2b is best. 

The precompositing would just be of the alpha channel, so I don’t think the canvas color would enter into that operation, right? You’d just be multiplying the pixels of the color alpha channel with the value of scrollbar-opacity. Once you have the calculated opacity for each pixel, whatever was behind it in the z axis would be revealed to that degree for that pixel. 

And presumably the thumb would be in front of the track in the z axis. 

-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9853#issuecomment-2204017346 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 July 2024 18:24:25 UTC