W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2012

Re: agenda request: proposed currentColor changes in CSS

From: Chris Lilley <chris@w3.org>
Date: Thu, 2 Feb 2012 20:10:18 +0100
Message-ID: <787892307.20120202201018@w3.org>
To: Cameron McCormack <cam@mcc.id.au>
CC: SVG WG <public-svg-wg@w3.org>
On Friday, January 27, 2012, 1:29:28 AM, Cameron wrote:

CM> The CSS WG is proposing to change how the currentColor keyword is computed.

CM> See: 
CM> http://www.w3.org/mid/CAAWBYDBZNeHkB3NEXfQZt7KXsrt_B96HUN9z=sv_=_Ymz1gSRw@mail.gmail.com

CM> Note that we do have at least one test in our test suite checking the 
CM> current behaviour:

CM> http://dev.w3.org/SVG/profiles/1.1F2/test/svg/color-prop-05-t.svg

$ grep -l currentColor *.svg

$ grep -l currentColor *.svg | xargs grep inherit | grep fill

turns up

animate-elem-84-t.svg:          <animateColor attributeName="fill" from="#f00" to="inherit" begin="2s" dur="5s" fill="freeze"/>
animate-elem-84-t.svg:          <animateColor attributeName="fill" from="inherit" to="green" begin="2s" dur="5s" fill="freeze"/>
animate-pservers-grad-01-b.svg:          This test shows rectangles filled with animated gradient which inherits some of their properties: stop-color, stop-opacity.
color-prop-01-b.svg:      <g color="inherit" fill="none" stroke="none">
color-prop-01-b.svg:      <g color="inherit" fill="none" stroke="none">
struct-group-03-t.svg:        <rect x="3" y="10" width="16" height="32" fill="inherit"/>


$ grep -l currentColor *.svg | xargs grep inherit | grep stop

animate-pservers-grad-01-b.svg:          This test shows rectangles filled with animated gradient which inherits some of their properties: stop-color, stop-opacity.
animate-pservers-grad-01-b.svg:        <linearGradient id="MyGradient1" stop-color="inherit">
animate-pservers-grad-01-b.svg:          <stop offset="1" stop-color="inherit" stop-opacity="1"/>
animate-pservers-grad-01-b.svg:        <linearGradient id="MyGradient2" stop-opacity="inherit">
animate-pservers-grad-01-b.svg:          <stop offset="1" stop-color="green" stop-opacity="inherit"/>
pservers-grad-18-b.svg:        The second stop explicitly inherits (i.e. using the 'inherit' keyword) its stop-color.
pservers-grad-18-b.svg:        The second stop defines a green stop-color but explicitly inherits (i.e. using the 'inherit' keyword) the stop-opacity.
pservers-grad-18-b.svg:        the stop-color is inherited from the location of the gradient definition.
pservers-grad-18-b.svg:      <linearGradient id="MyGradient1" stop-color="inherit">
pservers-grad-18-b.svg:        <stop offset="1" stop-color="inherit" stop-opacity="1"/>
pservers-grad-18-b.svg:      <linearGradient id="MyGradient2" stop-opacity="inherit">
pservers-grad-18-b.svg:        <stop offset="1" stop-color="green" stop-opacity="inherit"/>
styling-inherit-01-b.svg:        with a radial gradient. The color of the middle stop uses the keyword 'inherit'
styling-inherit-01-b.svg:      <stop offset="50%" stop-color="inherit"/>

 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
Received on Thursday, 2 February 2012 19:12:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:14 UTC