<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>38113</bug_id>
          
          <creation_ts>2010-04-26 04:20:38 -0700</creation_ts>
          <short_desc>Disabling a &apos;style&apos; element through DOM doesn&apos;t reload the style sheet</short_desc>
          <delta_ts>2022-07-12 20:38:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=26179</see_also>
          <bug_file_loc>http://www.arcrachatcredits.org</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mitch 74">mitch074</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>pangle</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>216997</commentid>
    <comment_count>0</comment_count>
    <who name="Mitch 74">mitch074</who>
    <bug_when>2010-04-26 04:20:38 -0700</bug_when>
    <thetext>Probably related to bug 14586.

Webkit doesn&apos;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&apos;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 instead of merely disabling it

Test case:

http://www.arcrachatcredits.org

This website disables the stylesheet &apos;style-vert-css2.css&apos; loaded through a
STYLE tag in the head if the document&apos;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&apos;t work in Konqueror 4.2, Chromium 5.0.339, Chrome 4.1.249.1045, Safari
4.0.5 (531.22.7).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882485</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 12:56:00 -0700</bug_when>
    <thetext>I can&apos;t tell a difference between Safari, Chrome, or Firefox on this site. Please REOPEN this bug with a simple test case if you believe there is still an issue here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882902</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-12 20:38:23 -0700</bug_when>
    <thetext>I would expect that we still have issues in this area (and other browsers might too). But someone would need to create minimized test cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>