Closed Bug 1452520 Opened 6 years ago Closed 6 years ago

[KDE] Selectors that have .solid-csd class do not work

Categories

(Core :: Widget: Gtk, defect)

61 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zzag, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180408100251

Steps to reproduce:

* Install latest KDE Plasma (at this moment, 5.12.4)
* Use Breeze GTK theme(Go to System Settings > Application Style > GNOME Application Style (GTK) and pick Breeze under "Select a GTK3 theme")
* Disable title bar in Firefox
* Unmaximize Firefox (if it was maximized)


Actual results:

Corners are round. See the attached picture.


Expected results:

Corners should have been sharp because Breeze GTK has the following rule:

```
  .solid-csd decoration {
    border-radius: 0;
    margin: 0;
    padding: 0px;
    border: none;
    background-color: #556068;
    box-shadow: none; }
```

source: https://github.com/KDE/breeze-gtk/blob/master/Breeze-gtk/gtk-3.20/gtk.css#L3630

Also, I've tried using the following rule but without success

```
.solid-csd headerbar.default-decoration,
.solid-csd .titlebar.default-decoration {
  border-radius: 0; }
```

Without `.solid-csd` class it works, corners of Firefox are sharp.

Most likely, Firefox somehow mishandles rules which have .solid-csd class in their selectors.
Blocks: gtktitlebar
That's because "solid-csd" is a class used for decorations for uncomposited environment, without alpha blending and semi-transparent shadows. We use "csd" class as we support transparent window borders.
So, indeed, it seems like that's theme related issue (related to css precedence, I guess).
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
See Also: → 1456898
I'll investigate this as we need to support KDE somehow.
Assignee: nobody → stransky
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Status: REOPENED → ASSIGNED
Summary: Selectors that have .solid-csd class do not work → [KDE] Selectors that have .solid-csd class do not work
See Also: → 1453386
KDE is supported well now so closing this as a theme bug.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → INVALID
(In reply to Martin Stránský [:stransky] from comment #4)
> KDE is supported well now so closing this as a theme bug.

No, I still can't resize the window.
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #5)
> (In reply to Martin Stránský [:stransky] from comment #4)
> > KDE is supported well now so closing this as a theme bug.
> 
> No, I still can't resize the window.

Can you please file a new bug and attach some screenshot there? This one is about Breeze GTK theme on KDE.
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #5)
> No, I still can't resize the window.

That's because of Breeze GTK theme. See

https://github.com/KDE/breeze-gtk/blob/master/Breeze-gtk/gtk-3.20/gtk.css#L3691
If Firefox relies on a buggy dependency to realize a feature, the bug should either be reported and fixed upstream or circumvented in Firefox. Should we reopen this bug until it's fixed or mark it as wontfix instead? It's all, but not invalid.^^
Also, I can confirm that now corners are sharp. :)
(In reply to Martin Stránský [:stransky] from comment #6)
> Can you please file a new bug and attach some screenshot there?

bug 1453386 was about this.
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #10)
> (In reply to Martin Stránský [:stransky] from comment #6)
> > Can you please file a new bug and attach some screenshot there?
> 
> bug 1453386 was about this.

I reopened bug 1453386 as it's about the resize.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: