Remove usage of `display: -moz-groupbox` and `-moz-appearance: groupbox`
Categories
(Toolkit :: Printing, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: ntim, Assigned: mossop)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Only one usage in mozilla-central: https://searchfox.org/mozilla-central/search?q=display%3A+-moz-groupbox&case=false®exp=false&path=
Probably not worth keeping the whole nsGroupBoxFrame implementation around just for it.
Comment 1•5 years ago
|
||
What does this layout do? Wondering if it could be replaced with a box with some styling or if there's something more involved.
Comment 2•5 years ago
|
||
It appears to be some kind of fieldset-like layout for XUL:
https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XUL/groupbox
Maybe the markup can use HTML <fieldset>/<legend> instead? (assuming it's a design we want to keep)
Comment 3•5 years ago
|
||
Looking at the source, I don't see anything special other than the painting of the border:
https://searchfox.org/mozilla-central/source/layout/xul/nsGroupBoxFrame.cpp
It would be great if we could get rid of this code.
Comment 4•5 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #3)
Looking at the source, I don't see anything special other than the painting of the border:
https://searchfox.org/mozilla-central/source/layout/xul/nsGroupBoxFrame.cpp
It would be great if we could get rid of this code.
It seems pretty doable to update the windows printPageSetup page to not use it. What do you think we should do with the tests at https://searchfox.org/mozilla-central/search?q=display%3A+-moz-groupbox&case=false®exp=false&path=?
Comment 5•5 years ago
|
||
The crashtests might have some value beyond -moz-groupbox, so replacing -moz-groupbox with -moz-box in those seems reasonable. The -moz-groupbox part of the mochitest should be removed.
Comment 6•5 years ago
|
||
Note that there's also a StyleAppearance::Groupbox (-moz-appearance:groupbox) and some a11y stuff related to this display value:
https://searchfox.org/mozilla-central/search?q=groupbox&path=
I'm guessing those can be removed too.
Comment 7•5 years ago
•
|
||
It appears there are some <groupbox> elements in Preferences etc though, which I assume creates a XULGroupboxAccessible, so let's keep the a11y stuff as is for now. (we can address that after it's been replaced with proper HTML some time in the future)
The -moz-appearance value should be possible to remove now though as printPageSetup.css appears to be the only user:
https://searchfox.org/mozilla-central/search?q=appearance%3A+groupbox&path=
(this might be better to do as a separate bug though, in the interest of keeping the patch size smaller and more targeted)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
The display property appears to do nothing here and the appearance closely
matches that of a fieldset so switching to that seems to work fine.
Assignee | ||
Comment 9•5 years ago
|
||
This is what it looks like with the change.
Assignee | ||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by dtownsend@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/018aa28cf32f Remove use of `display: -moz-groupbox` and `-moz-appearance: groupbox` from the page setup dialog. r=dao
Reporter | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
bugherder |
Reporter | ||
Comment 12•4 years ago
|
||
Splitting the platform removal off to a new bug, because different patches in different releases on the same bug can get confusing.
Description
•