Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34045

Re: Media CSS Rules

Newsgroups comp.lang.javascript
Subject Re: Media CSS Rules
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <-IidnUN5Wfq98FHEnZ2dnUU7-RPNnZ2d@westnet.com.au> <Db-dnUWZQcn_7VHEnZ2dnUU7-L_NnZ2d@westnet.com.au>
Date 2017-09-28 10:10 +0200
Message-ID <XnsA7FE6777B76DDeejj99@194.109.6.166> (permalink)

Show all headers | View raw


Andrew Poulos <ap_prog@hotmail.com> wrote on 28 Sep 2017 in 
comp.lang.javascript:

> Doh. I just found that under CSSRuleList is CSSMediaRule and MDN tells 
> me that CSSMediaRule is of type 4.

Try this [tested under Chrome beta v62]:

var i, mySheet = document.styleSheets;
  for (i = 0; i < mySheet.length; i++)
    console.log(mySheet[i]);

Gives you all sheet info [... you ever wanted upto now ;-) ].

I use it in the Shortcut manager.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Media CSS Rules Andrew Poulos <ap_prog@hotmail.com> - 2017-09-28 13:31 +1000
  Re: Media CSS Rules Andrew Poulos <ap_prog@hotmail.com> - 2017-09-28 13:45 +1000
    Re: Media CSS Rules "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-09-28 10:10 +0200

csiph-web