GNOME Bugzilla – Bug 791363
Shadow vertical offset is wrong when scaling is > 2
Last modified: 2017-12-08 23:24:59 UTC
The shadow offset is wrong when using scaling over 2. As you can see in this https://imgur.com/U7tbJkO.png screenshot (same happens using default Adwaita of course). The issue seems caused by commit 942e904 (as fix for bug 772075), probably a copy&paste error (?). It can be easily tested launching something like: GDK_SCALE=3 gtk3-demo # forcing GDK backend to X11 might be needed in wayland This affects fractional scaling, as for any scaling > 2 we'll scale the widgets up to 3.
Created attachment 365214 [details] [review] cssshadowvalue: don't apply the y_scale offset twice to the shadow Removing double-offset causing the issue here. Using the same shadow of above [1], as you can see everything works: https://imgur.com/lVKGI4o [1] decoration { box-shadow: -5px -5px 4px 20px red; }
Review of attachment 365214 [details] [review]: good catch
Attachment 365214 [details] pushed as 29f36fe - cssshadowvalue: don't apply the y_scale offset twice to the shadow