If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

The background-position: doesn't like mixed x & y types

RESOLVED INVALID

Status

SeaMonkey
General
RESOLVED INVALID
14 years ago
13 years ago

People

(Reporter: Phill Rogers, Unassigned)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219

<html><head><title>bug</title><style><!-- 
body { background-image: url("http://www.mozilla.org/images/mlogo.gif");
 background-repeat: no-repeat; background-position: center 20px; }
 --></style></head><body></body></html>


Reproducible: Always
Steps to Reproduce:
1. use the above snippet
2. load into Mozilla or Firebox
3. try variations of x & y

Actual Results:  
Image goes to top left, as if position unspecified.


Expected Results:  
It'd be nice if it went where I told it.


Product, Version, Component, Platform, OS (from help-about):
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7a) Gecko/20040219
build 2004021913
  background-position: center 20px;	/* fails */
  background-position: 100px top;	/* fails */
  background-position: 100px 20px;	/* good */
  background-position: center top;	/* good */

Comment 1

14 years ago
http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position

"Keywords cannot be combined with percentage values or length values"

Comment 2

14 years ago
--> Browser
Assignee: firefox → general
Component: General → Browser-General
Product: Firefox → Browser
QA Contact: general
Version: unspecified → Trunk
(Reporter)

Comment 3

14 years ago
(In reply to comment #1)
> http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position
> 
> "Keywords cannot be combined with percentage values or length values"

Doh!  You're quite right, thanks.  How do I close this (newbie) ?  Ta.

Comment 4

14 years ago
Closing for you.

--> INVALID
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.