W3C home > Mailing lists > Public > www-style@w3.org > August 2013

RE: [css-om] CSSStyleDeclaration.parentElement

From: François REMY <francois.remy.dev@outlook.com>
Date: Wed, 21 Aug 2013 18:57:12 +0200
Message-ID: <DUB120-W9291F47C91AF0924ED27FA54C0@phx.gbl>
To: Simon Pieters <simonp@opera.com>, "www-style@w3.org" <www-style@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC