privacytests / privacytests.org

Source code for privacytests.org. Includes browser testing code and site rendering.
https://privacytests.org
MIT License
846 stars 25 forks source link

convert checks and crosses #13

Closed arthuredelstein closed 5 years ago

arthuredelstein commented 6 years ago

Right now, index.html uses unicode characters for checks and crosses (pass and fail). But these look different on each platform and sometimes ugly. We should replace them with icons. Probably inline SVG is the best, used as a CSS background-image.

arthuredelstein commented 5 years ago

We should replace them with icons. Probably inline SVG is the best, used as a CSS background-image.

I did this with PNGs instead, because Tor Browser won't render SVGs at high security. I feel it takes too long to render, however, probably because the PNGs have to get loaded and rescaled. I can think of a couple of options:

  1. Embed the PNGs as data URIs, prescaled to the correct size.
  2. Embed a two-character webfont to render the checkes and crosses via unicode as we want.
arthuredelstein commented 5 years ago
1. Embed the PNGs as data URIs, prescaled to the correct size.

I implemented this option in 1390b80d25abcd2f0f00044f6af756d4c7b576e8