Re: Encapsulating CSS in Shadow DOM

2014-08-20 Thread Marc Fawzi
n/m ... the request is more specific than the email subject... the JS
solution to the problem is certainly less appealing than a CSS only
solution.. .will be watching this :)


On Wed, Aug 20, 2014 at 9:20 AM, Marc Fawzi  wrote:

> Hmm. I thought that's part of the purpose of Web Component, i.e. to
> encapsulate CSS and JS? Is it not so?
>
>
> On Wed, Aug 20, 2014 at 1:42 AM, Henrik Haugberg <
> henrik.haugb...@gmail.com> wrote:
>
>> I am hoping it will be possible to have root em like font size based
>> values, but based on the shadow root (or host) when using shadow dom. Like
>> 10hem (host em) or something like that. That would make it a lot easier to
>> make scalable widgets/components where only one or a few css properties
>> would have to be changed when scaling the content in different contexts.
>>
>> I have described this in more detail here:
>>
>>
>> http://stackoverflow.com/questions/24953647/font-size-css-values-based-on-shadow-dom-root
>>
>
>


Re: Encapsulating CSS in Shadow DOM

2014-08-20 Thread Marc Fawzi
Hmm. I thought that's part of the purpose of Web Component, i.e. to
encapsulate CSS and JS? Is it not so?


On Wed, Aug 20, 2014 at 1:42 AM, Henrik Haugberg 
wrote:

> I am hoping it will be possible to have root em like font size based
> values, but based on the shadow root (or host) when using shadow dom. Like
> 10hem (host em) or something like that. That would make it a lot easier to
> make scalable widgets/components where only one or a few css properties
> would have to be changed when scaling the content in different contexts.
>
> I have described this in more detail here:
>
>
> http://stackoverflow.com/questions/24953647/font-size-css-values-based-on-shadow-dom-root
>


Encapsulating CSS in Shadow DOM

2014-08-20 Thread Henrik Haugberg
I am hoping it will be possible to have root em like font size based
values, but based on the shadow root (or host) when using shadow dom. Like
10hem (host em) or something like that. That would make it a lot easier to
make scalable widgets/components where only one or a few css properties
would have to be changed when scaling the content in different contexts.

I have described this in more detail here:

http://stackoverflow.com/questions/24953647/font-size-css-values-based-on-shadow-dom-root