Re: [libcroco-list] Unknown functional notations



Hey Bjoern,

[...]
On Thu, May 27, 2004 at 03:38:53AM +0200, Bjoern Hoehrmann wrote:
> Hi,
> 
>   I finally got around to build libcroco (0.5.1) on Win32 again and
> trying to play a bit with the code, so expect some dump questions :-)
> It seems that unknown functional notations are not reported to the
> property handler, for example
> 
>   w { x: y(z) }
> 
> I would expect that
> 
>   lu.getLexicalUnitType() == SAC_FUNCTION &&
>   lu.getFunctionName() == "y" &&
>   lu.getParameters().getLexicalUnitType() == SAC_IDENT &&
>   lu.getParameters().getLexicalUnitType().getStringValue() == "z"
> 
> in SAC terms, but for the style sheet above my handler does not even
> get called... It works for url(), and rgb(), but e.g. for
> 
>   :before { content: attr(title) }

Yeah, it seems that 0.5.1 has a bug. CVS HEAD doesn't have it
though.
csslint on a css file with this construct works fine. I think a new
version of libcroco is needed soon ;)

> it does neither call my handler, even though that is legal CSS 2.0,
> likewise for the equally legal
> 
>   @font-face
>   {
>     src: local("BT Century 751 No. 2 Semi Bold Italic");
>   }
> 

This example works with CVS HEAD too.

Regards,

Dodji.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]