Import Rule in css [message #193756] |
Fri, 01 June 2007 07:23  |
Eclipse User |
|
|
|
Hi,
I need css styles that are available for a particular element in html. I
get that information by asking for the IStyleSheetAdapter of the
html DOMNode. The adapter I get actually serves the style sheets well
but seems to fail with import rules (e.g. @import url("global.css");).
How can I get imported sheets? I noted, that the css editor actually
supports the import rules neither (this rule is not present as proposal
in content assist, no properties are displayed). Should I file a bug for
the missing @import rule support?
Thanks,
Stefan
|
|
|
Re: Import Rule in css [message #194059 is a reply to message #193756] |
Wed, 06 June 2007 13:05   |
Eclipse User |
|
|
|
Stefan Holzknecht wrote:
> Hi,
> I need css styles that are available for a particular element in html. I
> get that information by asking for the IStyleSheetAdapter of the html
> DOMNode. The adapter I get actually serves the style sheets well but
> seems to fail with import rules (e.g. @import url("global.css");). How
> can I get imported sheets? I noted, that the css editor actually
> supports the import rules neither (this rule is not present as proposal
> in content assist, no properties are displayed). Should I file a bug for
> the missing @import rule support?
Yes.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=wst.css
--
Nitin Dahyabhai
Structured Source Editor
|
|
|
Re: Import Rule in css [message #194067 is a reply to message #194059] |
Wed, 06 June 2007 14:11   |
Eclipse User |
|
|
|
Hi,
after reviewing my code I figured out that class
'org.eclipse.wst.css.core.internal.util.AbstractCssTraverser ' provides a
property setTraverseImported(boolean) that works as expected.
Nevertheless, the content assist of the css editor could be improved and
the ability to link to an imported css file would be nice.
Stefan
|
|
|
Re: Import Rule in css [message #194105 is a reply to message #194067] |
Wed, 06 June 2007 17:07  |
Eclipse User |
|
|
|
Stefan Holzknecht wrote:
> Hi,
> after reviewing my code I figured out that class
> 'org.eclipse.wst.css.core.internal.util.AbstractCssTraverser ' provides a
> property setTraverseImported(boolean) that works as expected.
> Nevertheless, the content assist of the css editor could be improved and
> the ability to link to an imported css file would be nice.
Patches are welcome, if you're interested in implementing the
improvements you'd like to see.
--
Nitin Dahyabhai
Structured Source Editor
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds