1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed 1.2b4 Style properties syntax in WebDav

Discussion in 'Resolved Bug Reports' started by Arty, Jul 5, 2013.

  1. Arty

    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.
     
  2. Kier

    Kier XenForo Developer Staff Member

    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.png
     
  3. Kier

    Kier XenForo Developer Staff Member

    And the alternative syntax...

    Screen Shot 2013-07-05 at 11.31.37.png
     
  4. Arty

    Arty Well-Known Member

    After saving property with alternative syntax, refresh style property in admin control panel:
    webdav03.png
    webdav04.png


    and this is how it looks like with usual syntax (note background color difference):
    webdav01.png
    webdav02.png
     
    Adam Howard likes this.
  5. Kier

    Kier XenForo Developer Staff Member

    I think I've identified the problem and fixed it now.
     
    Adam Howard likes this.

Share This Page