W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: Ambiguities in fill:url() / stroke:url() syntax

From: Karl Dubost <karld@opera.com>
Date: Mon, 29 Oct 2012 08:28:44 -0400
Message-Id: <8C1F1647-48BA-41E1-A320-407077421E2A@opera.com>
Cc: Dirk Schulze <dschulze@adobe.com>, www-svg <www-svg@w3.org>, www-style <www-style@w3.org>
To: robert@ocallahan.org

Le 27 oct. 2012 à 06:26, Robert O'Callahan a écrit :
> Given a url() value in a context whether either an external resource reference (e.g. paint server reference) or an image load (e.g. SVG image) could be performed, 

Naïvely, what about a meta, attribute of whatever flag inside the svg file saying something along: 

*        "This SVG file is a stack of icons.".
* and/or "This element is a a stacked icon."


Below non prescriptive syntax, just to illustrate.

<svg id="icon" 
     class="icon" 
     version="1.1" xmlns="http://www.w3.org/2000/svg"   
     xmlns:xlink="http://www.w3.org/1999/xlink"

     role="iconstack">

[…]  
   <svg viewBox="0 0 16 16">
      <g id="chart" class="icon">[…]</g>
   </svg>
   <svg viewBox="0 0 16 16">
      <g id="plus" class="icon">[…]</g>
   </svg>
</svg>




and/or 



<svg id="icon" 
     class="icon" 
     version="1.1" xmlns="http://www.w3.org/2000/svg"     
     xmlns:xlink="http://www.w3.org/1999/xlink">
[…]  
   <svg viewBox="0 0 16 16" 

        role="icon">

      <g id="chart" class="icon">[…]</g>
   </svg>
   <svg viewBox="0 0 16 16" 

        role="icon">

      <g id="plus" class="icon">[…]</g>
   </svg>
</svg>

 

-- 
Karl Dubost - http://dev.opera.com/
Developer Relations, Opera Software
Received on Monday, 29 October 2012 12:29:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT