#15784 closed defect (invalid)
dojo/dom-style won't change background-image for firefox or opera, but works in chrome and safari
Reported by: | Jacqui Manzi | Owned by: | Jacqui Manzi |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | HTML | Version: | 1.7.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
using: dojo/dom-style and dojo/_base/sniff
Sample code:
domStyle.set("appBarContainer", "background-image", gradient);
This will change the background image to my gradient string in Chrome and Safari, but will not change the gradient in Firefox or Opera. I am using dojo/has to sniff for the browser type and then giving the gradient variable the appropriate css3 gradient string (webkit, moz, etc..).
Version of Firefox I am using is: 14 and Opera 11.61
Change History (5)
comment:1 Changed 8 years ago by
Owner: | set to Jacqui Manzi |
---|---|
Status: | new → pending |
comment:2 Changed 8 years ago by
Component: | General → Core |
---|
comment:3 follow-up: 5 Changed 8 years ago by
You should use "backgroundImage" rather than "background-image".
See http://www.w3schools.com/jsref/dom_obj_style.asp for more info.
comment:4 Changed 8 years ago by
Component: | Core → HTML |
---|---|
Resolution: | → invalid |
Status: | pending → closed |
comment:5 Changed 8 years ago by
Replying to freddefisk:
You should use "backgroundImage" rather than "background-image".
See http://www.w3schools.com/jsref/dom_obj_style.asp for more info.
Oh, whoops.
Thank you and sorry about that!
Can you provide a complete working example and attach it to the ticket?