RE: [svg-developers] Inheritance in Svg
- Hi Cameron,
Thanks a lot for the information.
Thanks and regards,
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of Cameron McCormack
Sent: Monday, April 20, 2009 11:39 AM
Subject: Re: [svg-developers] Inheritance in Svg
> The ‘color’ property is inherited, so no you don’t need to explicitlyFurther examples:
> have color="inherit" on the child element.
<circle r="100" fill="inherit"/>
The fill="inherit" isn’t needed, since ‘fill’ is defined to be an
inherited property; you could leave out the attribute.
<stop stop-color="red" offset="0"/>
<stop stop-color="yellow" offset="1"/>
Since ‘stop-opacity’ is not inherited, the initial value of "1" is used
for both <stop> elements. You could say:
<stop stop-color="red" offset="0" stop-opacity="inherit"/>
<stop stop-color="yellow" offset="1" stop-opacity="inherit"/>
to explicitly get the ‘stop-opacity’ value from the parent.
Cameron McCormack ≝ http://mcc.id.au/
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
[Non-text portions of this message have been removed]