Closed Bug 811469 Opened 12 years ago Closed 11 years ago

Indicator progress bar gradient leaks into border

Categories

(Firefox :: Downloads Panel, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 21
Tracking Status
firefox20 --- verified

People

(Reporter: mconley, Assigned: cers)

References

Details

(Keywords: polish, Whiteboard: [testday-20130315])

Attachments

(1 file, 1 obsolete file)

The indicator progress bar has a 1px gradient on it (landing as part of bug 746674) to increase contrast.

Currently, that gradient leaks into the border of the progress bar. It shouldn't do that.

We likely want to specify the following rule:

background-clip: border-box, padding-box;

And then setting the background-image to:

background-image: A, B

Where A will correspond to border-box, and B to padding-box. The idea being to decouple the 1px gradient from the solid colour background.
Depends on: 746674
Attached patch Proposed patch (obsolete) — Splinter Review
Hasn't been tested on Windows and Linux
Assignee: nobody → csonne
Status: NEW → ASSIGNED
Attachment #699486 - Flags: review?(dolske)
Attachment #699486 - Flags: review?(dolske) → review+
Comment on attachment 699486 [details] [diff] [review]
Proposed patch

What's the point of clipping a "none" image at the border-box?
(In reply to Dão Gottwald [:dao] from comment #2)
> Comment on attachment 699486 [details] [diff] [review]
> Proposed patch
> 
> What's the point of clipping a "none" image at the border-box?

If it's not there, then the background color is clipped by the background-clip as well - which isn't intended. I made dabblet to test, but for some reason I can't get it to give a direct link to it.

Another option is to remove the background-color, and insert it as a "fake" gradient in the place where "none" currently sits, or indeed make the border opaque, but that makes it harder to change the color later.
Can you add a comment documenting that the border-box background-clip is there for the background-color to expand behind the border?
(In reply to Dão Gottwald [:dao] from comment #4)
> Can you add a comment documenting that the border-box background-clip is
> there for the background-color to expand behind the border?

Does that look ok to you?
Attachment #699486 - Attachment is obsolete: true
Attachment #699515 - Flags: review?(dao)
Comment on attachment 699515 [details] [diff] [review]
Proposed patch with note

Needs no extra review. Thanks!
Attachment #699515 - Flags: review?(dao)
if this lands today, we may hope to uplift it.
Sorry, but I had to back this out along with bug 826605 for xpcshell failures.
https://hg.mozilla.org/integration/mozilla-inbound/rev/adb13d36e50a

https://tbpl.mozilla.org/php/getParsedLog.php?id=18799534&tree=Mozilla-Inbound

TEST-UNEXPECTED-FAIL | /Users/cltbld/talos-slave/test/build/xpcshell/tests/dom/tests/unit/test_multiple_geo_listeners.js | 2 == 1 - See following stack:
TEST-UNEXPECTED-FAIL | /Users/cltbld/talos-slave/test/build/xpcshell/tests/dom/tests/unit/test_multiple_geo_listeners.js | 420 == 42 - See following stack:
relanded, this css-only change cannot cause an xpcshell test failure
https://hg.mozilla.org/integration/mozilla-inbound/rev/762779b020db
Comment on attachment 699515 [details] [diff] [review]
Proposed patch with note

[Approval Request Comment]
Bug caused by (feature/regressing bug #): downloads panel feature
User impact if declined: theme polish glitch
Testing completed (on m-c, etc.): m-i (merge pending)
Risk to taking this patch (and alternatives if risky): polish style fix, feature only
String or UUID changes made by this patch: none
Attachment #699515 - Flags: approval-mozilla-aurora?
Attachment #699515 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
https://hg.mozilla.org/mozilla-central/rev/762779b020db
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Verified fixed using latest beta and Windows 7 64 bit.
Whiteboard: [testday-20130315]
Verified as fixed on Firefox 20 RC: - there is no leaking into the border caused by the Indicator progress. 

Verified on Windows 7, Ubuntu 12.04 and Mac OS X 10.8:
Build ID: 20130326150557

Mozilla/5.0 (Windows NT 6.1; rv:20.0) Gecko/20100101 Firefox/20.0
Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: