<?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>19874</bug_id>
          
          <creation_ts>2012-11-06 09:16:53 +0000</creation_ts>
          <short_desc>Drop scoped stylesheets</short_desc>
          <delta_ts>2013-02-12 19:35:22 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>19995</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Glazman">daniel.glazman</reporter>
          <assigned_to name="Edward O&apos;Connor">eoconnor</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>eoconnor</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</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>77930</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2012-11-06 09:16:53 +0000</bug_when>
    <thetext>It&apos;s proposed to drop scoped stylesheets because they are totally undefined
on the CSS part. In particular, the way they integrate into the cascade, the
specificity of scoped selectors, how web fonts are shared or variables passed,
is *totally* undefined. Since it&apos;s very unlikely the CSS WG will have time to
specify this in reasonable time for HTML5, even leaving the feature &quot;at-risk&quot;
is useless and it&apos;s probably a better signal for the specification and the W3C
to drop it for the time being. Warning, this does NOT say this feature is
interesting and even important for the future (for copy/paste and shadow
DOM in particular); it only says the feature is absolutely not ready for
a CR. It also does not say the html part of scoped stylesheet is not defined,
it says the CSS part is not...

References:

Already present in my comments on HTML5 LC in may 2011,
strictly unaddressed by HTML WG.
http://www.w3.org/2002/09/wbs/40318/html5-last-call-poll/results#xq4

TPAC 2012, CSS WG, monday morning, meeting with plh and HTML WG chairs
http://logs.csswg.org/irc.w3.org/css/?date=2012-10-29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77955</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-11-06 16:20:41 +0000</bug_when>
    <thetext>I believe the cascade/specificity bit is actually well-defined, or at the very least there is a proposal everyone agrees on last I checked.

I agree that fonts and variables are a problem that may warrant pulling this from the HTML5 REC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77957</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2012-11-06 16:59:16 +0000</bug_when>
    <thetext>I&apos;ll note that this is already listed on the features at risk page:

http://www.w3.org/html/wg/wiki/index.php?title=HTML5.0AtRiskFeatures&amp;diff=13639&amp;oldid=13638</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77962</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2012-11-06 17:51:09 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; I believe the cascade/specificity bit is actually well-defined, or at the
&gt; very least there is a proposal everyone agrees on last I checked.

A &quot;proposal everyone agrees&quot; is not a REC or even a CR. And I am
myself still unsure about the proposed specificity.
More importantly, this discussion never happened seriously in the
CSS WG (where such a technical discussion belongs) because the
HTML WG never asked us to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77964</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Glazman">daniel.glazman</who>
    <bug_when>2012-11-06 17:53:26 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt; I&apos;ll note that this is already listed on the features at risk page:

An at-risk feature that is eventually dropped is &quot;something we wanted,
made public in CR and cannot afford right now&quot;. A feature dropped
before that goes out of the radar. I am asking the pros and cons of
both approaches to be discussed, not only technically but also in
terms of public image for W3C.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77966</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2012-11-06 18:10:04 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; 
&gt; &gt; I&apos;ll note that this is already listed on the features at risk page:
&gt; 
&gt; An at-risk feature that is eventually dropped is &quot;something we wanted,
&gt; made public in CR and cannot afford right now&quot;. A feature dropped
&gt; before that goes out of the radar. I am asking the pros and cons of
&gt; both approaches to be discussed, not only technically but also in
&gt; terms of public image for W3C.

Perhaps this will be of use then: http://dev.w3.org/html5/decision-policy/decision-policy-v3.html#cr-remove-early

- Sam Ruby</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78337</commentid>
    <comment_count>6</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-11-15 07:52:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I believe the cascade/specificity bit is actually well-defined, or at the
&gt; very least there is a proposal everyone agrees on last I checked.

It&apos;s now well-defined in the Cascade module: &lt;http://dev.w3.org/csswg/css3-cascade/#cascade&gt;

&gt; I agree that fonts and variables are a problem that may warrant pulling this
&gt; from the HTML5 REC.

Variables are a non-issue.  They&apos;re properties, and so scope just as well as anything else.

For fonts, it depends.  If we&apos;re willing to say &quot;welp, those aren&apos;t actually scoped - they leak into the global font set&quot;, then it&apos;s easy.  I&apos;ve seen pushback in doing anything better. :/

We could do something like disable @font-face normally, only allowing it in an @host rule (which relaxes the scoping).  @host still needs to be properly defined, of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83022</commentid>
    <comment_count>7</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2013-02-12 19:35:22 +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: Additional Information Needed
Change Description: No spec change.
Rationale: It&apos;s not clear to me if this bug report counts as a
nomination for early removal per §13 of the WG&apos;s Decision Policy:

http://dev.w3.org/html5/decision-policy/decision-policy-v3.html#cr-remove-early

If Daniel or one of the Chairs could clarify, that would be great!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>