Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33697
| From | James Kirk <noneya.invalid@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Disabled stylesheet still used |
| Date | 2017-08-07 14:43 -0400 |
| Organization | Time Travel Tracing |
| Message-ID | <20170807144338.000038c8@james.kirk.invalid> (permalink) |
| References | <kZ6dnVj08fqglhXEnZ2dnUU7-X3NnZ2d@westnet.com.au> |
In-Reply-To: <kZ6dnVj08fqglhXEnZ2dnUU7-X3NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
> In a page head there are references to a number of stylesheets
> <link id="black" type="text/css" rel="stylesheet" disabled
> href="black.css"> <link id="blue" type="text/css"
> rel="stylesheet" disabled href="blue.css"> <link id="green"
> type="text/css" rel="stylesheet" disabled href="_green.css"> ...
> The js, which is called after the stylesheet references, in the
> page enables one of the stylesheets, eg
> document.getElementById("black").disabled = false;
> On Chrome, IE, Edge and Brave (and on an iPad) the enabled
> stylesheet is the one that is applied.
> With Firefox the "last" stylesheet is always applied irrespective
> of which stylesheet is enabled. How can I get Firefox to only
> apply the enabled stylesheet?
> This implies that what I'm doing should work
> <https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled>
Have you considered removing the disabled attribute, setting the rel
attribute to 'alternate stylesheet' and then toggle the rel
attribute between 'alternate stylesheet' & stylesheet?
--
James Kirk
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Disabled stylesheet still used Andrew Poulos <ap_prog@hotmail.com> - 2017-08-07 16:39 +1000
Re: Disabled stylesheet still used Silvio <silvio@internet.com> - 2017-08-07 09:11 +0200
Re: Disabled stylesheet still used Julio Di Egidio <julio@diegidio.name> - 2017-08-07 02:10 -0700
Re: Disabled stylesheet still used Andrew Poulos <ap_prog@hotmail.com> - 2017-08-07 19:35 +1000
Re: Disabled stylesheet still used Julio Di Egidio <julio@diegidio.name> - 2017-08-07 03:41 -0700
Re: Disabled stylesheet still used Julio Di Egidio <julio@diegidio.name> - 2017-08-07 20:42 -0700
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-07 22:30 +0200
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-07 22:53 +0200
Re: Disabled stylesheet still used Andrew Poulos <ap_prog@hotmail.com> - 2017-08-08 12:31 +1000
Re: Disabled stylesheet still used Julio Di Egidio <julio@diegidio.name> - 2017-08-07 20:48 -0700
Re: Disabled stylesheet still used James Kirk <noneya.invalid@gmail.com> - 2017-08-07 14:43 -0400
Re: Disabled stylesheet still used James Kirk <noneya.invalid@gmail.com> - 2017-08-07 19:50 -0400
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-08 06:40 +0200
OT standard whining from PointedEars nothing useful here James Kirk <noneya.invalid@gmail.com> - 2017-08-08 05:43 -0400
Re: Disabled stylesheet still used (was: OT standard whining from **** nothing useful here) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-08 13:03 +0200
Re: Disabled stylesheet still used JJ <jj4public@vfemail.net> - 2017-08-08 01:55 +0700
Re: Disabled stylesheet still used JJ <jj4public@vfemail.net> - 2017-08-08 01:58 +0700
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-07 22:32 +0200
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-07 21:37 +0200
Re: Disabled stylesheet still used Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-08-07 22:31 +0200
csiph-web