set_style_class_name won't redraw on all css property
Affected version
Provide at least the following information:
- Ubuntu 19.10
- Gnome-shell 3.34.3
- XOrg (x11)
Bug summary
On Gjs code for gnome-extesion, if I change a widget css class by a css class that only have text-decoration property (with set_style_class_name), it won't redraw the widget and change will not be seen. But if my css class also have a color property, the change will be seen and the component will redraw.
Steps to reproduce
- Have a class with only text-decoration property
.text-checked { text-decoration: line-through; }
- Set the css class to a widget (in my case a St.Label()) on a button next to the label
this.label.set_style_class_name("text-checked");
- Click said button to trigger the style change
What happened
The text of my label isn't crossed
What did you expect to happen
The text of my label should be crossed
Relevant logs, screenshots, screencasts etc.
Like I said, if I have the same class with a color property like so :
.text-checked { text-decoration: line-through; color: black; }
This does work.