Open Bug 875153 Opened 7 years ago Updated 1 year ago

unitless lengths no longer accepted for 'background-position' property

Categories

(Core :: DOM: Core & HTML, defect, P5)

17 Branch
x86_64
Windows 7
defect

Tracking

()

People

(Reporter: epinal99-bugzilla2, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

547 bytes, text/html
Details
Attached file Testcase
I'm note sure if it's a valid bug, anyway I report it.

STR: Open the testcase, the background image should be animated from top to bottom.

Regression range:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c918ff2f0994&tochange=ae22909cef5a
Keywords: regression
Caused by landing of Bug 774122.

It works, if you change
bgObject.style.backgroundPosition = "0 " + backgroundOffset; 
to
bgObject.style.backgroundPosition = "0 " + backgroundOffset +"px";
Where did you encounter the problem?  (Was it on a real website?  Are you a user of that site or a developer?)
Summary: Background image stops animating → unitless lengths no longer accepted for 'background-position' property
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #2)
> Where did you encounter the problem?  (Was it on a real website?  Are you a
> user of that site or a developer?)

Yes, it's on a website (a blog) which gives a script to animate the background. Then I reduced the code to obtain the testcase.
(reported on French board http://forums.mozfr.org/viewtopic.php?f=8&t=112987)
The uer says it works in Chrome and IE.
Blocks: 774122
Then the quirks-mode-spec should be updated to reflect the reality.
(In reply to Loic from comment #3)
> (In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from
> comment #2)
> > Where did you encounter the problem?  (Was it on a real website?  Are you a
> > user of that site or a developer?)
> 
> Yes, it's on a website (a blog) which gives a script to animate the
> background. Then I reduced the code to obtain the testcase.
> (reported on French board http://forums.mozfr.org/viewtopic.php?f=8&t=112987)
> The uer says it works in Chrome and IE.

Well, the user who reported it there says (if I'm understanding the French correctly) that he created the site where he saw the bug, and then points to a URL of something similar which appears to be a test site (pressing keys throws up debugging alerts).

Based on that (if I'm understanding correctly), I'm not inclined to add a quirk.

I'm much more likely to add a quirk when the problem is reported by a user of the site rather than a developer, especially for an issue that's already shipped on the release channel (bug 774122, Firefox 17).  Though bug 774122 comment 17 does point to another author complaining about a background-position problem... though again not a user.
This should be fixed in bug 1103000
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.