Page 1 of 1

CSS editing

Posted: Fri Apr 08, 2005 5:55 pm
by ksader
Any chance of Oxygen adding CSS code completion support?

Posted: Mon Apr 11, 2005 3:38 pm
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

Posted: Thu Apr 14, 2005 5:02 pm
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.

Posted: Fri Apr 15, 2005 1:49 pm
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

Posted: Fri Apr 15, 2005 2:25 pm
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> ...

Posted: Fri Apr 15, 2005 3:14 pm
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