Fixed 1.2b4 Style properties syntax in WebDav

Arty

Well-known member
There is a difference when XenForo is parsing @whatever and {xen:property whatever} for background color inside style property in WebDav - first one is being parsed correctly, while second one isn't.

Example:
Code:
@property "test";
background: {xen:property pageBackground} url('{xen:property imagePath}/xenforo/layout/pattern.png') repeat top;
@property "/test";
and
Code:
@property "test";
background: @pageBackground url('@imagePath/xenforo/layout/pattern.png') repeat top;
@property "/test";

That code is the same, the only difference is syntax. After saving template via WebDav using first syntax and checking style property in admin control panel, background of property "test" will have following values:

background-color: transparent
background-image: {xen:property imagePath}/xenforo/layout/pattern.png

After saving template using second syntax and checking style property in admin control panel, background of property "test" will have following values:

background-color: @pageBackground
background-image: @imagePath/xenforo/layout/pattern.png

I'm not sure if this bug applies only to background color.
 
I'm not sure if I'm missing something, but I've been using this to test...
Code:
.something
{
    @property "testy";
    background: @pageBackground url('@imagePath/whatever.png') no-repeat;
    @property "/testy";
}
and it's been working just fine..?

Screen Shot 2013-07-05 at 11.28.10.webp
 
After saving property with alternative syntax, refresh style property in admin control panel:
webdav03.webp
webdav04.webp


and this is how it looks like with usual syntax (note background color difference):
webdav01.webp
webdav02.webp
 
Top Bottom