for example 'font-size: 1.5em' shouldn't inherit as this would then imply a further 1.5em expansion of the font-size. This method needs to be made smarter, if it's to be retained.
For now, I've just added the inherited() method and parent() attributes with the aim of allowing agents to build their own simple rendering trees and handle inheritance themselves.
probably better in the general case. Anything that's processing a DOM probably needs to do its own inheritance, using the newly introduced parent() and inherited() methods.
for example 'font-size: 1.5em' shouldn't inherit as this would then imply a further 1.5em expansion of the font-size. This method needs to be made smarter, if it's to be retained.
For now, I've just added the
inherited()
method andparent()
attributes with the aim of allowing agents to build their own simple rendering trees and handle inheritance themselves.