Last modified: 2013-03-21 18:29:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47826, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45826 - pixel droppings around the GuidedTour arrow
pixel droppings around the GuidedTour arrow
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
GuidedTour (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Munaf Assaf
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-07 07:04 UTC by spage
Modified: 2013-03-21 18:29 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
shows pixel glitches (14.65 KB, image/png)
2013-03-07 07:04 UTC, spage
Details

Description spage 2013-03-07 07:04:21 UTC
Created attachment 11891 [details]
shows pixel glitches

The arrow that GuidedTour sometimes draws on guiders has some pixel glitches.  In the attachment you can see obvious pixels below the arrow tip , and I think a faint darkening above the arrow.

I think this occurs because CSS "sprites" the arrow heads from the png modules/ext.guidedTour.arrows.png[1] , and in this the pixels from the shadow around one arrowhead bleed into the crop rectangle of the nearby arrowhead.

The fix is to remake the png with a bigger gap between each arrowhead so the shadow pixels don't overlap bounding rectangles, then adjust the CSS.

[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/GuidedTour.git;a=blob;f=modules/ext.guidedTour.arrows.png;
Comment 1 Matthew Flaschen 2013-03-07 07:21:51 UTC
There is no need to use sprites here, especially if it's causing problems.  ResourceLoader instead lets use a separate image for each arrow, all of which will be embedded into the CSS as data URLs (in modern browsers, but there is a working fallback for older ones).
Comment 2 Munaf Assaf 2013-03-07 17:50:16 UTC
I agree that sprites made this a lot more troublesome, especially since we're drawing shadows around the guiders. I wonder if it's better to just do raw shapes and draw the shadows via CSS. I'll play around with that a little.
Comment 3 Matthew Flaschen 2013-03-09 01:39:01 UTC
I discovered Guiders actually has a _arrowSize field, which we may need to update.
Comment 4 Munaf Assaf 2013-03-21 18:03:24 UTC
Fix here: https://gerrit.wikimedia.org/r/#/c/55100/

Using CSS to shape our arrows would reduce browser support, so sprites will remain for now. We can tackle _arrowSize in another bug.
Comment 5 Matthew Flaschen 2013-03-21 18:29:36 UTC
Merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links