Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33708
| Subject | Re: Disabled stylesheet still used |
|---|---|
| Newsgroups | comp.lang.javascript |
| References | <kZ6dnVj08fqglhXEnZ2dnUU7-X3NnZ2d@westnet.com.au> <916b1ac8-cc6b-460f-84f1-99a0b482a053@googlegroups.com> <Ir6dncB58cHaqRXEnZ2dnUU7-WvNnZ2d@westnet.com.au> <4023794.cEBGB3zze1@PointedEars.de> <4025304.LvFx2qVVIh@PointedEars.de> |
| From | Andrew Poulos <ap_prog@hotmail.com> |
| Date | 2017-08-08 12:31 +1000 |
| Message-ID | <__KdnROBJc8PvxTEnZ2dnUU7-dXNnZ2d@westnet.com.au> (permalink) |
On 8/08/2017 6:53 AM, Thomas 'PointedEars' Lahn wrote: > Thomas 'PointedEars' Lahn wrote: > >> Andrew Poulos wrote: >>> On 7/08/2017 7:10 PM, Julio Di Egidio wrote: >>>> On Monday, August 7, 2017 at 8:40:13 AM UTC+2, Andrew Poulos 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"> >>>>> ... >>> […] >> Because of the references in HTML 5.x and WHATWG HTML, one must assume >> that the `disabled` property of `link` element objects is now implemented >> only according to the `StyleSheet` interface of the CSS Object Model >> (CSSOM) Specification, which is still a Working/Editor’s Draft: >> >> <https://www.w3.org/TR/2016/WD-cssom-1-20160317/#the-stylesheet-interface> >> <https://drafts.csswg.org/cssom/#the-stylesheet-interface> (2017-08-07) > > Those are alternative stylesheets, so you should also provide the > `alternate` keyword in the `rel` attribute value for those that should not > be immediately applied. > > Curiously, in Chromium at least then the alternative stylesheet is only > applied if first I set the `disabled` property on the corresponding element > object to “true”, which causes a “disabled” attribute to appear in the > markup view, and then to “false”, which causes the attribute to disappear > again. I discovered alternative stylesheet earlier today and after some experimentation and googling I've dropped the idea of being able to enable one of a number of "disabled" stylesheets in a page. I just can't get it to work consistently across the handful of browsers I'm testing on. Instead I using js to dynamically add the stylesheet that was to be enabled to the head. Andrew Poulos
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