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

Fixed background-attachment not accepted?

Discussion in 'Resolved Bug Reports' started by Jake Bunce, Dec 10, 2010.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I am editing xenforo.css. My body is this:

    Code:
    body
    {
    	@property "body";
    	background-color: #222222;
    	background-image: url(http://anim.tv/public/style_images/bubblesteel/bg.png);
    	background-repeat: no-repeat;
    	background-attachment: fixed;
    	background-position: center center;
    	font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
    	color: @contentText;
    	word-wrap: break-word;
    	line-height: 1.27;
    	@property "/body";
    }
    
    In the compiled output on the page I get this:

    Code:
    body
    {
    	font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
    color: rgb(20,20,20);
    background: #222222 url('http://anim.tv/public/style_images/bubblesteel/bg.png') no-repeat center center;
    word-wrap: break-word;
    line-height: 1.27;
    
    }
    
    Where did background-attachment go?
     
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed now. The code was assuming that all properties handled by "background" could go into a style property. I've changed this to be a white list approach.
     

Share This Page