[tor-bugs] #18009 [Globe]: country-flag-atlas.png reference incorrect in country-flags.css
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Jan 6 17:44:48 UTC 2016
#18009: country-flag-atlas.png reference incorrect in country-flags.css
-------------------------------+------------------------
Reporter: derrickoswald | Owner: isis
Type: defect | Status: new
Priority: Very Low | Milestone:
Component: Globe | Version:
Severity: Trivial | Keywords: standalone
Actual Points: | Parent ID:
Points: | Sponsor:
-------------------------------+------------------------
The reference to the png file containing country flag images is a relative
reference to a sibling directory called img, but it should be to a
subdirectory. Here is the change that fixes the missing country flags when
running standalone (i.e. when double-clicking the index.html file or using
Ctrl-O within a browser to open the index.html file):
{{{
diff --git a/src/css/country-flags.css b/src/css/country-flags.css
index feddd1e..d9f9fdf 100644
--- a/src/css/country-flags.css
+++ b/src/css/country-flags.css
@@ -2,7 +2,7 @@
.country-flag{
position:relative;
- background:url('../img/country-flag-atlas.png') no-repeat;
+ background:url('img/country-flag-atlas.png') no-repeat;
background-clip:content-box;
padding:0;
display: inline-block;
}}}
The effect is to have no country flags visible when running locally. It
only works on the https://globe.torproject.org web site because the
application is deployed at the root of the site and an extra relative ..
does nothing.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18009>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list