Page 1 of 1

CSS Syntax Error on @footnote

Posted: Mon Oct 28, 2024 6:59 am
by fsteimke
I am writing a CSS Stylesheet for PDF Chemistry. My @page rule is:

Code: Select all

@page {
    size: A4;
    @bottom-center {
        content: counter(page);
        color: #606060;
        font-size:0.9rem;
    }
    @footnote {
        content: leader(solid);
        color: silver;
    }
}
It works as expected. But when i run a Format Document (pretty-print the whole CSS Document) i get a Syntax Error which reads:

Code: Select all

System-ID: /home/frank/oxygenxml/xsltng-kosit/print-css/oxygen-chemistry.css
Fehlerlevel: error
Beschreibung: Encountered " <ATKEYWORD> "@footnote "" at line 22, column 5.
Was expecting one of:
    "}" ...
    ";" ...
    <IDENT> ...
    "@top-left-corner" ...
    ... some more lines ... 
    "@right-bottom" ...
    "@footnotes" ...
The expected keyword for formatting is @footnotes (plural), while CSS Syntax only allows @footnote (singular).
This happens with a fresh Oxygen 26.1 on Linux.
Greetings, Frank

Re: CSS Syntax Error on @footnote

Posted: Mon Oct 28, 2024 6:47 pm
by julien_lacour
Hello Frank,

We are aware of this issue and it has already been addressed in Oxygen 27.0, the format and indent function will work then.
I will notify this thread once the new version will be available.

Regards,
Julien

Re: CSS Syntax Error on @footnote

Posted: Fri Nov 29, 2024 2:10 pm
by Mircea
Hello Frank,

The new Oxygen 27.0 was now released.
Please give it a try and see if the fix is suitable for your case.

Regards,
Mircea.