Last modified: 2014-09-13 13:14:57 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 T37338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35338 - Vector: List bullet icon should not be low-res (pixelated on HiDPI screens)
Vector: List bullet icon should not be low-res (pixelated on HiDPI screens)
Status: NEW
Product: MediaWiki skins
Classification: Unclassified
Vector (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
:
: 62954 (view as bug list)
Depends on:
Blocks: hidpi 44881
  Show dependency treegraph
 
Reported: 2012-03-19 23:22 UTC by Brion Vibber
Modified: 2014-09-13 13:14 UTC (History)
10 users (show)

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


Attachments
Screenshot of en.wikipedia.org on iPad 3 with Retina display (925.72 KB, image/png)
2012-03-19 23:22 UTC, Brion Vibber
Details

Description Brion Vibber 2012-03-19 23:22:27 UTC
Created attachment 10279 [details]
Screenshot of en.wikipedia.org on iPad 3 with Retina display

Monobook and Vector skins set a bluish-cyanish bullet image for default ul/li list items.

This looks nice on traditional low-resolution screens, but is visibly pixelated on high-res displays like the iPad with Retina display, or when zooming in or printing.

Recommend using an SVG if possible, with PNG fallback.
Comment 1 Bartosz Dziewoński 2014-02-06 11:44:28 UTC
A problem here is that we have no cross-browser way to provide SVG + PNG fallback for list-style-image :(

We could either go with just SVG and leave other browsers with regular
list-style-type: disc (or 'square' for Mononook), or try to use a
background-image here, which will cause problems where people overrode the core style (e.g. for FA/GA badges on interwiki list on Wikipedias).
Comment 2 Bartosz Dziewoński 2014-03-22 14:33:18 UTC
*** Bug 62954 has been marked as a duplicate of this bug. ***
Comment 3 david.nicolson 2014-03-23 06:02:14 UTC
Is a CSS-only solution a possibility?

<style>
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
    li {
        position: relative;
    }
    li::before {
        content: "";
        border-radius: 3px;
        border: 3px solid #00528c;
        position: absolute;
        left: -13px;
        top: 8px;
    }
}
</style>
Comment 4 Bartosz Dziewoński 2014-03-28 19:43:00 UTC
That's interesting, but has the same drawbacks in what I described in comment 1.
Comment 5 Jared Zimmerman (WMF) 2014-06-04 20:57:49 UTC
is there reason that this isn't actually just a basic unicode character because we're worried some fonts might not have a basic round bullet? like so -> •
Comment 6 Bartosz Dziewoński 2014-06-04 21:39:41 UTC
The original reason was probably IE6 support :)

Someone should totally cross-reference our browser support matrix with their CSS support and come up with a gracefully-degrading way of doing this better.
Comment 7 Jared Zimmerman (WMF) 2014-06-04 21:40:48 UTC
IE6 doesn't support <li> with • ?
Comment 8 Bartosz Dziewoński 2014-06-04 21:43:53 UTC
I assume you mean a "•" inserted using ::before pseudo-elements? It doesn't support these, yes.

The default list style is of course something looking just like this, but it's not possible to change the color of the "list marker" independently of the color of list item text without using additional HTML elements, and I think the point here is the color.
Comment 9 Jared Zimmerman (WMF) 2014-06-04 21:54:44 UTC
Should I change the bug to "Stop using IE6?" 

But seriously, we'll add a basic dot character to the wikifont, should be able to solve this right.?
Comment 10 Krinkle 2014-09-01 16:07:54 UTC
Most icons are supplemented with SVG versions. Though since this is just a basic circle, do we even need an image here?

What about the default 'circle' style? Or if we want a custom color, we could use a pseudo-element with the circle as textual character.

* http://stackoverflow.com/a/5308785/319266
* http://stackoverflow.com/a/4288590/319266
* http://zekefranco.me/css/change-color-of-bullets/
Comment 11 Bartosz Dziewoński 2014-09-13 13:14:57 UTC
This was attempted in 502fffe3bf2cb6a8fccb8059436a038e21153596, but that way doesn't work. If anyone ever works on this, that is one way not to do it. ;)

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


Navigation
Links