Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36934
| From | Martin Leese <please@see.Web.for.e-mail.INVALID> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Edge and CSS vars |
| Date | 2019-06-18 13:10 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <qebcv8$t4q$1@dont-email.me> (permalink) |
| References | <4fadndB_m-sm-5XAnZ2dnUU7-SnNnZ2d@westnet.com.au> |
Andrew Poulos wrote:
> In a stylesheet I have this
>
> background: no-repeat left center var(--panebtn-img);
>
> and in my code when I call this
>
> document.documentElement.style.setProperty('--panebtn-img',
> 'url("../images/dark.png")');
>
> Chrome and Firefox duly show the background image but not Edge.
>
> For Edge the URL needs to be changed to
> 'url("images/dark.png")'
>
> If I make the change then Chrome and Firefox won't show the image even
> though Chrome's developer tools shows that the element has the correct
> full URL to the image.
Are you setting the <base> tag? Perhaps
that will bring the different browsers into
concurrence.
--
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Edge and CSS vars Andrew Poulos <ap_prog@hotmail.com> - 2019-06-18 14:21 +1000
Re: Edge and CSS vars Andrew Poulos <ap_prog@hotmail.com> - 2019-06-18 14:29 +1000
Re: Edge and CSS vars "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-06-18 10:12 +0200
Re: Edge and CSS vars Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-06-18 13:10 -0600
csiph-web