[Webkit-unassigned] [Bug 85863] [Shadow] Style elements in Shadow DOM should not be exposed by document.styleSheets attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 30 02:37:09 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85863





--- Comment #10 from Takashi Sakamoto <tasak at google.com>  2012-05-30 02:37:09 PST ---
(In reply to comment #8)
> (From update of attachment 144340 [details])
> As I mentioned, I think this should be attacked as
> a part of style handling of shadow dom,instead of fixing this locally.
> http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles
> 
> Maybe starting point is pulling m_stylesheets from Document up to TreeScope.

I looked at Document and I felt that it was very difficult to pull m_stylesheets because Document also has m_styleResolver and the style resolver seems to tightly fit Document's stylesheets...

So I modified StyleResolver to enforce lower-boundary encapsulation for CSS rules.
I also fixed applyAuthorStyles bug, i.e. if applyAuthorStyles is true, all CSS rules declared in ancestors of the shadow DOM subtree will be applied... not only enclosed shadow DOM subtree.

I'm not sure whether I'm taking a correct way to fix these bugs. I would like to ask your advice.

Best regards,
Takashi Sakamoto

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list