- From: Nazar Mokrynskyi <notifications@github.com>
- Date: Wed, 03 Feb 2016 20:31:31 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 4 February 2016 04:32:00 UTC
> To me, it looks "styling from outside by default". :) Exactly I have nothing against any alternative approach, the main point just to make this possible. I do not personally like using imperative syntax for styling purposes, there should be a way to use `<style>` nodes for this. Maybe introduce something like Style Root that can only contain CSS? This would help to avoid any ambiguity. ```javascript ... createdCallback : function () { var s = document.querySelector('style#something'); this.attachStyle(s); // and/or this.createStyleRoot() } ... ``` --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/376#issuecomment-179628906
Received on Thursday, 4 February 2016 04:32:00 UTC