- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Fri, 14 Feb 2014 22:16:20 -0500
- To: Ryosuke Niwa <rniwa@apple.com>, Daniel Freedman <dfreedm@google.com>, Alex Russell <slightlyoff@google.com>
- CC: Elliott Sprehn <esprehn@chromium.org>, public-webapps <public-webapps@w3.org>
On 2/14/14 10:07 PM, Ryosuke Niwa wrote: > We most vigorously object to making the CSS style resolver depend on JS > DOM object properties. Ryosuke, I think you misunderstood the proposal. I'm pretty sure we all object to having the CSS style resolver depend on anything that involves JS properties. But it's not necessarily a problem to have it depends on internal node state that can be set via DOM APIs (e.g. it already depends on DOM attribute values and whatnot). So in implementation terms, an element would just have an internal boolean and setting "this.shadowRoot = undefined" or whatnot would set that boolean; the CSS machinery would read that boolean. That seems fairly workable to me; whether it's the sort of API we want is a separate issue that I have no opinion on. -Boris
Received on Saturday, 15 February 2014 03:16:51 UTC