Background for Gtk.Grid does not update correctly when grid is resized
Steps to reproduce
- Download grid_style.js and application.css into the same directory and run grid_style.js
Current behavior
After clicking the button a few times you will see that the background does not update correctly when the grid is resized.
- Setting background-clip: content-box in Gtk Inspector will fix the bug, but then the styling looks bad.
- The bug also happens with background-image, except when the theme is set to Adwaita dark.
- The bug resolves itself when the window loses focus, but calling Gtk.StyleContext.reset_widgets() or invalidate() does not resolve the issue.
Expected outcome
The background will update correctly when the grid is resized.
Version information
Gtk+ 3.22.29 Endless OS 3.5.8