• 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?

Jake Bunce

XenForo moderator
Staff member
#1
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?
 

Mike

XenForo developer
Staff member
#2
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.