Status: Unconfirmed Owner: ---- Labels: Type-Bug Pri-2 Area-Undefined
New issue 32167 by ttjoseph: Page stylesheets sometimes ignored when extension injects its own stylesheet
http://code.google.com/p/chromium/issues/detail?id=32167 Chrome Version : 4.0.297.0 (36113) (Mac OS X) URLs (if applicable) : https://developer.mozilla.org/en/DOM:document.documentElement http://qux.us/misc/chromium-style-bug.php Other browsers tested: 4.0.288.1 dev (Windows) - this version is OK. What steps will reproduce the problem? 1. In an extension, at document_start, insert a style tag. var foo = document.createElement("style"); foo.type = "text/css"; foo.innerText = "body { }"; // Content doesn't matter document.documentElement.insertBefore(foo, null); What is the expected result? Page should render normally (with whatever custom styles specified above). What happens instead? Page's own stylesheets are ignored and rendering is not correct (see screenshot). Please provide any additional information below. Attach a screenshot if possible. This appears to be a Mac issue and only appears on certain pages. For the second URL above, moving the location of a LINK tag within the HEAD tag on the page appears to fix the problem. Noticed this problem in the course of developing the AdThwart extension - this problem can be observed with the following version: http://github.com/ttjoseph/adthwart/zipball/v0.6.15 Attachments: Screen shot 2010-01-13 at 6.22.14 AM.png 97.3 KB Screen shot 2010-01-13 at 6.44.19 AM.png 71.4 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
-- Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs