CSS editing

Are you missing a feature? Request its implementation here.
ksader
Posts: 6
Joined: Wed Sep 22, 2004 1:04 am
Location: Geosynchronus Orbit
Contact:

CSS editing

Post by ksader »

Any chance of Oxygen adding CSS code completion support?
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Keith,

Do you mean code completion support when editing a CSS file or when editing a document that has a CSS file associated with it? Or both?

Best Regards,
George
ksader
Posts: 6
Joined: Wed Sep 22, 2004 1:04 am
Location: Geosynchronus Orbit
Contact:

Post by ksader »

Code completion when editing a CSS file.

Also, the CSS validator doesn't recogize the following as valid

{
background: url(foo/image.jpg);
}

If you quote the URI it will make the validator happy, but the above is valid CSS.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hi,

I get no CSS validation error for the code:

Code: Select all


{
background: url(foo/image.jpg);
}
Are you sure you are trying to validate this code in the CSS editor of the <oXygen/> Eclipse plugin ? To open this editor go to File -> New and select the entry CSS file or right-click on the CSS file in the navigator view and select Open With -> Oxygen CSS Editor.

Regards,
Sorin
Wabiloo
Posts: 9
Joined: Fri Apr 15, 2005 2:18 pm

Post by Wabiloo »

ksader wrote: Also, the CSS validator doesn't recogize the following as valid

{
background: url(foo/image.jpg);
}
I have the same problem. I open a CSS document with Oxygen standalone version, it is properly recognised as a CSS document (hence syntax highlighting works), but when I press on the Validate button, it stops at any url(blabla.gif) expression, just before the dot and returns the following error:

Code: Select all


Encountered "." at line 73, column 42.
Was expecting one of:
<S> ...
")" ...
"/" ...
"," ...
"-" ...
"+" ...
<NUMBER> ...
<PERCENT> ...
<LENGTH> ...
<EMS> ...
<EXS> ...
<ANGLE> ...
<TIME> ...
<FREQ> ...
<FUNCTION> ...
<STRING> ...
<IDENT> ...
<URI> ...
<RGB> ...
<UNICODE_RANGE> ...
<HASH> ...
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Yes this is a bug in the CSS validator and it will be fixed in a future version. Until then a simple workaround is to quote the URI.

Regards,
Sorin
Post Reply