| Summary: | [Intro] org.eclipse.ui.intro: Using content="..." in intro.xml, url referred to in css styles are not fully qualified automaticalls | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ralph Mayr <ralph.mayr> |
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cgold, prakash, ralph.mayr |
| Version: | 3.6.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
What you say makes sense - can you submit a test plug-in which illustrates the problem? This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |
Build Identifier: 20100917-0705 When refering to an XHTML intro page by using <page id=".." content="intro.html" /> in intro.xml, URLs used within embedded CSS in the html page are not fully qualified, whereas using <img src="..." /> within the html page automatically prefixes the provided filename with the correct location of the bundle. This leads to the problem, that css based background images are not displayed within intro pages that want to make use of IntroContentProviders. Reproducible: Always Steps to Reproduce: 1. Create an intro.xml that contains <page id="root" content="intro.html /> 2. In intro.html, use css based background images, e.g.: <style type='text/css'> body { background: url(bg.jpg); } </style> 3. When the intro is opened, the background image (bg.jpg) is not displayed. Using e.g. <img src="bg.jpg" />, the image is displayed. The problem seems to be, that org.eclipse.ui.intro.impl.model.util.ModelUtil does automatically extend the provided value in the src attribute of img tags, but does not modify URLs within CSS styles. I workarounded this behavior by adding a custom IntroContentProvider which analyses the DOM and does the full qualification of the URLs within CSS, but in my opinion, this should be done automatically, as it is for <img src="..." />