Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
DOM bug or feature?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Colin Kincaid Williams  
View profile  
 More options Dec 1 2011, 5:37 pm
Newsgroups: mozilla.dev.tech.dom
From: Colin Kincaid Williams <disc...@uw.edu>
Date: Thu, 1 Dec 2011 14:37:34 -0800
Local: Thurs, Dec 1 2011 5:37 pm
Subject: DOM bug or feature?
Hi,

I'm setting my page background via javascript by DOM reference
document.body.style.background="#f3f3f3 url('/images/xenopus.jpg')
no-repeat center fixed";

It sets the background image properties as expected . I'm also trying to
change the background image size

body {
    background-size: 20% auto;

}

however, the background image size does not seem affected. However it does
seem to work in webkit browsers. I tested chrome, and somebody else told me
it works in safari.

Document.body.style.background doesn't have option for background size, why
is the background-size not applying? Is this a bug or does it have to do
with firefoxen dom traversal? The page in question is
http://freediscord.com/usingBodyBkgrnd.html .

Furthermore, I noticed in firebug it shows the CSS set as:

element.style { background: url("/images/xenopus.jpg") no-repeat fixed
center center #F3F3F3; }
body { background-size: 20% auto;}

So shouldn't my background-size be set? Is this a bug or is this how its
supposed to work. I'd really like to get it working in both webkit and
gecko....
Sorry if this is the wrong place for my question.

Best,

Colin Williams


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Zbarsky  
View profile  
 More options Dec 1 2011, 8:31 pm
Newsgroups: mozilla.dev.tech.dom
From: Boris Zbarsky <bzbar...@mit.edu>
Date: Thu, 01 Dec 2011 20:31:25 -0500
Local: Thurs, Dec 1 2011 8:31 pm
Subject: Re: DOM bug or feature?
On 12/1/11 5:37 PM, Colin Kincaid Williams wrote:

> Document.body.style.background doesn't have option for background size, why
> is the background-size not applying? Is this a bug or does it have to do
> with firefoxen dom traversal? The page in question is
> http://freediscord.com/usingBodyBkgrnd.html .

This seems to work fine for me in both Firefox 8 and a current Aurora
build.  What Firefox version did you test?

> element.style { background: url("/images/xenopus.jpg") no-repeat fixed
> center center #F3F3F3; }
> body { background-size: 20% auto;}

> So shouldn't my background-size be set?

Set where?

-Boris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »