Comments on SVG Parameters

Hi there,

Shepazu just gave us (CSS WG) a short view of the SVG Parameters
spec and I must say I am impressed. I have the following rather
important comments to make:

1. in CSS, we have a pretty similar mechanism through the attr()
    notation used on the right-hand side of CSS declarations. But
    that attr() notation works on the element that holds the
    attribute while in SVG Parameters, a parameter is hold by a
    sub-element of the element you want to "style".

2. I want this mechanism to be generic and not limited to SVG. I
    think you should turn the whole thing into one single attribute
    very similar to the xbl:inherits attribute of XBL 1.0. Since an
    example is better than 10 explanations, please see below:

     <g>
       <rect id="button_rect" x="5" y="5" width="100" height="30"
             rx="15" ry="15"
             paraminherit="fill=color blue, stroke=outline navy"/>
       <text id="button_label" x="55" y="30" text-anchor="middle"
             font-size="25" fill="black" font-family="Verdana"
             paraminherit="content-value=label">
         button
       </text>
     </g>

     This new paraminherit attribute being in the SVG namespace, I can
     use it in another markup language. I can't use your param() in HTML
     with your current proposal.
     Furthermore, that gives us something that almost has the power of
     XBL with very minimal implementation...

Congrats for the idea anyway, I really look forward to seeing something
like this implemented.

</Daniel>

Received on Tuesday, 3 November 2009 23:37:31 UTC