Closed Bug 470045 Opened 17 years ago Closed 17 years ago

Add -moz-appearance: -moz-mac-scopebar

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mstange, Assigned: mstange)

References

()

Details

Attachments

(1 file)

Attached patch render part, v1 — — Splinter Review
(Also see URL.) We're using scope bars in the Bookmarks Organizer and in the Error Console, and I'm planning to use them in bug 466642, too. I think it's worth introducing a -moz-appearance for them. This patch is on top of that in bug 449442.
Attachment #353492 - Attachment description: render part, v1, wip → render part, v1
Attachment #353492 - Flags: superreview?(roc)
Attachment #353492 - Flags: review?(joshmoz)
What is a scope bar, screenshot?
The patch looks fine, but how do we decide when it's worth introducing a -moz-appearance value and implementing the rendering in native code?
That's a good question... I can think of three criteria but this patch satisfies neither of them: - Code simplification - not really, the CSS for scope bars is easy - Less total LOC - not the case; scope bars only need 3 lines of CSS at most, so we'd need a lot of them to make up for the lines that this patch adds - Sometimes -moz-appearance can do things that can't be done easily with CSS, like adapting to the OS theme - also not the case here. Now I'm convinced that it's not worth it. :-)
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Attachment #353492 - Flags: superreview?(roc)
Attachment #353492 - Flags: review?(joshmoz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: