RE: [css-om] CSSStyleDeclaration.parentElement

> So this property would point to the element for element.style but be null
> for cssrule.style et al?

Yes. So that either parentElement or parentRule have a non-null value.



> I'm having a bit of difficulty reasoning around your use case since it's
> about polyfilling. For instance, getting flow-from implemented in browsers
> would remove the need for parentElement in your case.

(1) there will always be a need to polyfill something on the web platform, and more generally to expose new functions to the style elements.

(2) the whole point of the css object model is... to expose the css object model. why exposing parentRule but not parentElement? it doesn't really make sense to me.

(3) beside polyfilling use-cases, what could you use the "parentRule" property for? did that prevent this property from existing? 		 	   		  

Received on Wednesday, 21 August 2013 16:57:41 UTC