Closed Bug 237065 Opened 20 years ago Closed 20 years ago

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

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: PhillRogers, Unassigned)

Details

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 */
http://www.w3.org/TR/REC-CSS2/colors.html#propdef-background-position

"Keywords cannot be combined with percentage values or length values"
--> Browser
Assignee: firefox → general
Component: General → Browser-General
Product: Firefox → Browser
QA Contact: general
Version: unspecified → Trunk
(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.
Closing for you.

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