Received: by 10.68.220.229 with SMTP id pz5mr1801232pbc.5.1331581836760; Mon, 12 Mar 2012 12:50:36 -0700 (PDT) Path: h9ni18656pbe.0!nntp.google.com!news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.mozilla.org!news.mozilla.org.POSTED!not-for-mail NNTP-Posting-Date: Mon, 12 Mar 2012 14:50:35 -0500 Date: Mon, 12 Mar 2012 19:50:21 +0000 From: Axel Grude User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 Newsgroups: mozilla.dev.apps.firefox Subject: Re: Get all stylesheets (including UA sheets)? References: In-Reply-To: X-TagToolbar-Keys: D20120312195021919 Message-ID: Lines: 25 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 212.129.86.16 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-cL405WlPbdrf0Rv+m9h0d3Q8mezNDP591vgrOsTHTpzfbvyPHgLVG0PXwe5lVS25O3F5hjyy3leQsaI!c3BgeXs/VxHq6qIY7l4uT9lmJflOU3ygmM0nyFWH6AJ1KKbqZ8f4A6xYC3pvkOgBY+R16pU33Xzy!tgaioLMJ5cq5 X-Complaints-To: abuse@mozilla.org X-DMCA-Complaints-To: ab...@mozilla.org X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 12/03/12 12:31, Mike Ratcliffe wrote: > Do we not have a way to list all stylesheets (including UA sheets) > used by a document? I could use domUtils.getCSSStyleRules() on every > element on the page, iterate the rules and gather the stylesheets that > way, but that seems like an awful hack. > > I am sure that there is something obvious but my Monday brain just > ain't finding it :o/ here is what I do to find my style sheet in xul. Dunno if that helps you for content: getMyStyleSheet: function() { var styleSheetList = document.styleSheets; for (var i=0; i