Issue
What are the rules for inheritance in TGML?
Environment
TGML editor
Cause
In order to create TGML components that function as designed, it is important to understand the TGML rules for inheritance
Resolution
Attribute inheritance means that a child element inherits (gets) the attribute value from an ancestor element if the attribute value is undefined (omitted) and if the attribute has been specified for an ancestor (any of the parents). In the example below, Rectangle will inherit the Fill value from the component.