Loading ...
Sorry, an error occurred while loading the content.

RE: [svg-developers] Inheritance in Svg

Expand Messages
  • Naveen Kumar T N
    Hi Cameron, Thanks a lot for the information. Thanks and regards, Naveen ________________________________ From: svg-developers@yahoogroups.com
    Message 1 of 4 , Apr 19, 2009
    • 0 Attachment
      Hi Cameron,

      Thanks a lot for the information.

      Thanks and regards,
      Naveen

      ________________________________
      From: svg-developers@yahoogroups.com [mailto:svg-developers@yahoogroups.com] On Behalf Of Cameron McCormack
      Sent: Monday, April 20, 2009 11:39 AM
      To: svg-developers@yahoogroups.com
      Subject: Re: [svg-developers] Inheritance in Svg





      Cameron McCormack:
      > The ‘color’ property is inherited, so no you don’t need to explicitly
      > have color="inherit" on the child element.

      Further examples:

      <g fill="red">
      <circle r="100" fill="inherit"/>
      </g>

      The fill="inherit" isn’t needed, since ‘fill’ is defined to be an
      inherited property; you could leave out the attribute.

      <linearGradient stop-opacity="0.5">
      <stop stop-color="red" offset="0"/>
      <stop stop-color="yellow" offset="1"/>
      </linearGradient>

      Since ‘stop-opacity’ is not inherited, the initial value of "1" is used
      for both <stop> elements. You could say:

      <linearGradient stop-opacity="0.5">
      <stop stop-color="red" offset="0" stop-opacity="inherit"/>
      <stop stop-color="yellow" offset="1" stop-opacity="inherit"/>
      </linearGradient>

      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]
    Your message has been successfully submitted and would be delivered to recipients shortly.