[Webkit-unassigned] [Bug 14586] Dynamically inserted stylesheets cannot be accessed via document.styleSheets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 23 03:42:12 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=14586


Mitch 74 <mitch074 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mitch074 at gmail.com




--- Comment #4 from Mitch 74 <mitch074 at gmail.com>  2010-04-23 03:42:12 PST ---
Three years and no work done on this...

Well now, a usable test case, that hits on a similar problem (I think this bug
should be renamed anyway).

Webkit doesn't populate document.styleSheets with stylesheets other than the
default/preferred one (no way to access alternate stylesheets for example), so
there is no way to use a Javascript stylesheet switcher. The following methods
don't work:

 - inserting a new stylesheet through Javascript then enabling it
 - disabling the preferred stylesheet
 - enabling an alternate stylesheet
 - disabling (as in, object.disabled=true) the (X)HTML element that loads the
preferred stylesheet (STYLE or LINK tags)

Untested: deleting the DOM node.

Test case:

http://www.arcrachatcredits.org

This website disables the stylesheet 'style-vert-css2.css' loaded through a
STYLE tag in the head if the document's body is smaller than 640x400 (and
re-enables it if resized above said resolution).

The test case works on Firefox 2.0 to 3.7a5pre, IE 7 (real and emulated) to 9,
Opera 10.10.

It doesn't work in Konqueror 4.2, Chromium 5.0.339, Chrome 4.1.249.1045, Safari
4.0.5 (531.22.7).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list