Omnicorp page - some CSS warnings

Topics: General
May 4, 2011 at 6:48 AM

Omnicorp page - some CSS warnings

Hi

Error console in Firefox returns few smaller CSS warnings


================================================================================
Warning: Expected declaration but found ')'.  Skipped to next declaration.
Source file: http://localhost:50531/Website_2.1/Omnicorp.aspx
Line: 12

Warning: Unexpected end of file while searching for '}'.
Source file: http://localhost:50531/Website_2.1/Omnicorp.aspx
Line: 12

  <style type="text/css">div#splash {background-image: url("/Website_2.1/Renderers/ShowMedia.ashx?i=MediaArchive:/Splashes/splash02.jpg"); );</style>

  
Our assumption:  Closing brackets do not match. 

Offending XSLT function: 
Omnicorp.layout.SplashImage


  <!-- compute image URL -->
  <xsl:template match="Page">
    <xsl:variable name="id" select="@Id"/>
    <xsl:variable name="hit" select="$splashes/SplashImage[@PageId.Id=$id]"/>
    <xsl:choose>
      <xsl:when test="$hit/@Image.CompositePath">
        <xsl:text>background-image: url(&quot;</xsl:text>
        <xsl:text>/Renderers/ShowMedia.ashx?i=</xsl:text>
        <xsl:value-of select="$hit/@Image.CompositePath"/>
        <xsl:text>&quot;);</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-templates select="parent::Page"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

 line 33:
          <xsl:text> );</xsl:text>
 
 should be
          <xsl:text> };</xsl:text>


================================================================================   
Warning: Unknown property 'user-select'.  Declaration dropped.
Source file: http://localhost:50531/Website_2.1/Frontend/Styles/Screen.css
Line: 82

for firefox it should be:
 -moz-user-select: none;

other that I found
 -webkit-user-select: none;
 -khtml-user-select: none;
 -moz-user-select: none;
 -o-user-select: none;
 user-select: none;
================================================================================   


I'm not going to open up an issue, so You would not have to close them....

regards

mel

Coordinator
May 10, 2011 at 10:17 AM

Thanks for the report - the issues have been fixed and the fixes should be visible on demo sites created from now on.