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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14153</bug_id>
          
          <creation_ts>2011-09-15 06:59:38 +0000</creation_ts>
          <short_desc>This defeats the entire purpose of separating style and content. Style scoping works quite well using the CSS cascade</short_desc>
          <delta_ts>2011-12-09 23:36:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#style-default-media</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to>contributor</assigned_to>
          <cc>ian</cc>
    
    <cc>jfoliot</cc>
    
    <cc>mike</cc>
    
    <cc>peter.winnberg</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56811</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-15 06:59:38 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html
Multipage: http://www.whatwg.org/C#style-default-media
Complete: http://www.whatwg.org/c#style-default-media

Comment:
This defeats the entire purpose of separating style and content. Style scoping
works quite well using the CSS cascade

Posted from: 165.69.2.2
User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56876</commentid>
    <comment_count>1</comment_count>
    <who name="John Foliot">jfoliot</who>
    <bug_when>2011-09-16 00:45:16 +0000</bug_when>
    <thetext>Likely duplication at Bug 14154 

Problem:
Styling should be reserved for CSS, and not embedded into the HTML layer with the &lt;style&gt; element. 

Summary:
John Allsopp has written a good post at http://www.webdirections.org/blog/on-the-abominable-proposed-html5-scoped-attribute-for-style-elements/ which details the problems.

Proposed Solution:
Remove the style element from the HTML specification. As Eric Meyer notes in a response to John&apos;s article:
     &quot;...Of course, Id prefer to do the same thing in the style attribute, as in style=&quot;@import url(blah.css);&quot;  and I pushed to get that capability added to CSS, which it eventually was in the style attribute module&quot; - which suggests that the problem the style element was trying to solve has been solved via CSS already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56878</commentid>
    <comment_count>2</comment_count>
    <who name="John Foliot">jfoliot</who>
    <bug_when>2011-09-16 00:47:28 +0000</bug_when>
    <thetext>*** Bug 14154 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57145</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Winnberg">peter.winnberg</who>
    <bug_when>2011-09-22 10:56:34 +0000</bug_when>
    <thetext>I am not sure if this bug is about removing the style element completely (I can see both advantages and disadvantages if that is done) or just the scoped attribute on the style element so that it can be used inside the body element and only apply to a certain part of a document.

What I am arguing for is removing the scoped attribute from the style element because this does not degrade gracefully in the sense that it will be ignored by older browsers that doesn&apos;t understand the scoped attribute ( or the style element ). A web browser that supports the style element but not the scoped attribute will most likely apply the CSS to the whole document and not just a part of it. And a web browser that doesn&apos;t support the style element could display the CSS as content in the document ( because it isn&apos;t hidden inside the head element ).

If this feature really is needed something like an externalcss attribute that can be used on block only elements inside the body would work better. 

&lt;div externalcss=&quot;scoped-style.css&quot;&gt;
&lt;!-- CSS from scoped-style.css only applied here --&gt;
&lt;/div&gt;

This would be completely ignored by older browsers, however something like this doesn&apos;t make much sense anyway because it would only be supported in the latest versions of the web browsers and the same thing can already be achieved using other techniques.

So I think the scoped attribute on the style element should be removed or at the very least be replaced with a better solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61370</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-09 23:36:07 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: 

While having embedded styles is indeed not ideal from a style/content separation point of view, it&apos;s nonetheless something a lot of people want and can actually use without compromising the actual goal of device independence, so in this case I think this is the right balance to strike.

Re comment 3: It actually degrades really quite well. Just make sure to prefix your selectors with a unique ID.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>