<?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>26734</bug_id>
          
          <creation_ts>2014-09-05 08:38:27 +0000</creation_ts>
          <short_desc>&lt;style&gt; needs to be applied in SVG fetched through &lt;img&gt;</short_desc>
          <delta_ts>2019-03-29 21:10:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>blocked awaiting response from Dirk to comment 9 (please remove this when replying)</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>24055</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cam</cc>
    
    <cc>d</cc>
    
    <cc>dschulze</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111053</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-05 08:38:27 +0000</bug_when>
    <thetext>Follow up from bug 26144.

In SVG as image context (&lt;img src=svg&gt;) we want to create a style sheet, but we want to set some kind of parameter that the style sheet only fetches resources with the &quot;local fetches only flag&quot; (see bug 26114) set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111093</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2014-09-05 19:23:31 +0000</bug_when>
    <thetext>Hmm. Unsure if this should be specified in CSSOM, or somewhere else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111095</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-05 19:40:01 +0000</bug_when>
    <thetext>This will have to be part of CSS&apos; fetching model. Which I guess is still not really defined. But e.g. it also affects the definition of &lt;style&gt; in HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111817</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-19 17:53:26 +0000</bug_when>
    <thetext>Can you elaborate? I&apos;m not sure I really understand what this bug is about.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111880</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-20 09:07:09 +0000</bug_when>
    <thetext>The idea is that when you fetch &lt;img src=svg&gt;, you get back a resource that you parse into a document without a browsing context or settings object. You still want to apply style sheets from that Document to create some kind of rendering output (SVG hasn&apos;t really defined all this yet unfortunately, so I&apos;ve no idea what terms we want). However, we do not want that document or its style sheets to fetch any external resources, so they need some additional processing flags for that (that they can then pass on to underlying systems such as Fetch, so that blob and data URLs still work).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111881</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-20 09:08:22 +0000</bug_when>
    <thetext>To be fair, the apply a style sheet (with some parameters) to a document and get some rendering output, is probably a missing concept in CSS, not SVG. But SVG misses the concept of having documents with browsing contexts and without.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111921</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-22 16:33:11 +0000</bug_when>
    <thetext>Ok but what precisely do you want on the HTML side? It&apos;s not clear that anything you&apos;re describing affects HTML. DOM, CSS, SVG, Fetch: sure. But why HTML? HTML already doesn&apos;t create a browsing context here, so the SVG spec can just describe how to render itself or fetch further resources when it is being presented in the absence of a browsing context, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111925</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-22 16:41:43 +0000</bug_when>
    <thetext>I thought we updated HTML to only do style resolution (or whatever it&apos;s called) if there&apos;s a browsing context. But e.g. &lt;html:style&gt; would still work in such an SVG-as-image resource.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112035</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-23 18:05:26 +0000</bug_when>
    <thetext>Ah, well, if you want certain things in HTML to work in certain cases where they don&apos;t work currently, please list what those should be and under what conditions they should work, and I&apos;ll be happy to update the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112070</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 09:24:35 +0000</bug_when>
    <thetext>Dirk, could you get the SVG WG to do that? SVG-as-image is the only case where this would apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129694</commentid>
    <comment_count>10</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 21:10:36 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/issues/702</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>