<?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>16527</bug_id>
          
          <creation_ts>2012-03-26 16:23:49 +0000</creation_ts>
          <short_desc>[Shadow]: getFlowByName and shadow DOM</short_desc>
          <delta_ts>2014-11-20 02:10:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Regions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://github.com/oslego/shadow-dom-regions</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15480</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Hardy">vhardy</reporter>
          <assigned_to name="Alan Stearns">stearns</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>eoconnor</cc>
    
    <cc>fremycompany_pub</cc>
    
    <cc>hayato</cc>
    
    <cc>jackalmage</cc>
    
    <cc>stearns</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66061</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Hardy">vhardy</who>
    <bug_when>2012-03-26 16:23:49 +0000</bug_when>
    <thetext>See the results of Razvan&apos;s experiment and the issue of accessing a named flow and scoped styles. There is a conflict between having the named flow on the Document and scoped shadow DOM branches. 

The question is: should named flows be Document-wide (always) or be scoped as the rest of the shadow styles? 

One solution is to say that named flows are document-wide (always) and can be referenced from scoped styles.

Another solution is to say that flows are scoped, and provide a solution to give DOM access to scoped flows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66066</commentid>
    <comment_count>1</comment_count>
    <who name="Vincent Hardy">vhardy</who>
    <bug_when>2012-03-26 17:20:12 +0000</bug_when>
    <thetext>Dmitry Glaskov suggested it may be related to:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15444</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90855</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-17 18:17:39 +0000</bug_when>
    <thetext>Vincent, what&apos;s the latest thinking on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91555</commentid>
    <comment_count>3</comment_count>
    <who name="FremyCompany">fremycompany_pub</who>
    <bug_when>2013-08-02 22:46:08 +0000</bug_when>
    <thetext>The two questions we want to ask ourselves is:



(1) let&apos;s suppose we want to use css regions inside a web components, do we want to be able to use a flow name that&apos;s not accessible from the outside document and do not conflict between multiple (possibly nested) instances of the web component?

If the answer is &quot;yes&quot;, which I believe, then named flows should be layout-tree-relative, and a document &amp; a shadow dom may not share flows. 

That means, however, that the only way to pour content from a document to inside a web components will then be to put the document-hosted elements you want to pour into the flow as descendant of the web components and to rely on the Web Components &lt;content select=&quot;...&quot;&gt; element to modify the position in the layout-tree of those elements and bring them inside the shadow layout-tree.



(2) let&apos;s suppose we want to use css regions inside a document, do we want a web component to be able to pour elements from the shadow tree in a document-wide tree? how would those elements get reported by the different APIs in such case ?

If the answer is yes, then we must find a way for a shadow subtree to intervene in the document-wide world, and this may be related to previously noted issue about selections. I believe a flag asking to flatten an element&apos;s shadow sub-tree to its parent sub-tree would affect named flow behavior as well and provide us with a solution for this specific case.



My tentative conclusion is that we want to specify (1) but may leave the door open to (2) in the future, if the shadow dom spec allows to control the layout-tree scope of a shadow tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115094</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-11-19 04:51:51 +0000</bug_when>
    <thetext>I am not sure this is still relevant.
Let me close this tentatively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115137</commentid>
    <comment_count>5</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2014-11-19 18:18:29 +0000</bug_when>
    <thetext>This needs to stay open, but should be generalized.  It&apos;s describing a problem with everything in CSS that defines a global name, which is problematic when shadow DOM is scoping styles.  It&apos;s too easy for shadow styles and light styles to accidentally collide when defining, and particularly when *using*, global names.

We need to solve this in a general way, that fixes Regions and @font-face and @counter-style and all the rest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115184</commentid>
    <comment_count>6</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-11-20 02:10:16 +0000</bug_when>
    <thetext>I got it. Thank you. Let&apos;s keep this open.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>