[Webkit-unassigned] [Bug 56981] CSSStyleSheet#insertRule doesn't work well with imported stylesheets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 18 19:53:37 PDT 2011


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





--- Comment #2 from Julien Chaffraix <jchaffraix at webkit.org>  2011-05-18 19:53:36 PST ---
(In reply to comment #1)
> The FAIL output is caused by the stylesheet temporarily disappearing from document.styleSheets after an @import rule is added to it. Seems clearly wrong.

This is caused by Document::recalcStyleSelector() removing the style sheets while they have at least a loading rule.

> "FAIL" on white background in ToT WebKit looks like a regression to me, not sure what caused it.

I am not sure what caused this but the root cause is HTMLLinkElement not calling Document::removePendingSheet for dynamically loaded sheet. It is related to the new {add|remove}PendingSheet logic in HTMLLinkElement. I have a patch that solves this problem that I will attach to this bug.

-- 
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