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

Fixed Border-radius style property component errors

Discussion in 'Resolved Bug Reports' started by Arty, Oct 4, 2013.

  1. Arty

    Arty Well-Known Member

    I have set border-radius to 3px for property "navTabs":
    Code:
        @property "navTabs";
         border-radius: 3px;
         @property "/navTabs";
    
    then I tried to check for border radius in conditional statement within same template file for another rule:
    Code:
    .test
    {
        <xen:if is="@navTabs.border-top-left-radius">
         border-top-left-radius: @navTabs.border-top-left-radius;
         </xen:if>
         <xen:if is="@navTabs.border-bottom-left-radius">
         border-bottom-left-radius: @navTabs.border-bottom-left-radius;
         </xen:if>
    }
    
    First "if" statement incorrectly returned in false, second "if" statement returned true, resulting in this HTML code:
    Code:
    .test
    {
    
    
    -webkit-border-bottom-left-radius: 3px; -moz-border-radius-bottomleft: 3px; -khtml-border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
    
    }
    
    Checking for border-top-right-radius component also incorrectly returns false.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed now. This is fairly obscure. We optimized the style property cache but to do that, we needed to set some extra keys in the customized style's cache. Since we were setting it to an empty string, other places were treating that as existing/being canonical. I've changed these to be null which will cause the property reader to consider these to not exist. I don't think this should have any side effects, as in 1.1 they wouldn't have existed.
     

Share This Page