Closed Bug 290880 Opened 20 years ago Closed 20 years ago

poor support for CSS: background-repeat property

Categories

(Core :: Layout, defect)

1.7 Branch
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: amanda77kr, Unassigned)

Details

Attachments

(6 files, 3 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

The CSS background-repeat property is not well-supported. Does not support
background-repeat along an axis (background-repeat: repeat-x, for example).
Almost incompatible with the IE settings (if settings work in IE, they look
'wrong' in Firefox, and vice versa). Other "background" properties are not
well-supported, such as setting the background image to none for hyperlink
properties. Am a designer, this is noticed while designing sites.

Reproducible: Always

Steps to Reproduce:
1. Code a site using aforementioned properties as styles.
2. Try using a very thin graphic, like a graphical line, as a repeating
background for a <p> or <div>, and notice differences between IE and Firefox.
3.

Actual Results:  
The background either disappears (repeat-x), or or doesn't display correctly,
appearing wrapped and disappearing into upper and lower <div> limits.

Expected Results:  
Displayed a repeating background along an X axis properly or compatibly with
IE's display values (until IE is no longer so popular!)
is it W3C compliant?
Amanda, can you attach a testcase to show what you're seeing? It will improve
your chances of getting an answer tenfold.
Brian, the spec for this is at
http://www.w3.org/TR/CSS21/colors.html#propdef-background-repeat

over to Core:Layout for further triage
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.7 Branch
(In reply to comment #1)
> is it W3C compliant?

Yes, (I) comply to XHTML and CSS standards.
Attached file Corrected CSS
Attached file Corrected testcase (obsolete) —
Tescase with corrected links.
Attached file Corrected testcase (obsolete) —
Testcase with corrected links.
Attached file Corrected testcase
Attachment #181147 - Attachment is obsolete: true
Attachment #181148 - Attachment is obsolete: true
Attached file CSS (obsolete) —
Attachment #181146 - Attachment is obsolete: true
Attachment #181146 - Attachment is obsolete: false
Attachment #181146 - Attachment mime type: text/plain → text/css
Attachment #181153 - Attachment description: CSS with the right MIME → CSS
Attachment #181153 - Attachment is obsolete: true
Sorry for the mess :) 

The problem is that you setting "background-attachment: fixed". Do you really
want this? Generally this means that a background does not move when you scroll
a page.

For the exact behaviour, see http://www.hixie.ch/tests/evil/mixed/bgafixed.html

I think you should mark this bug as INVALID.
(In reply to comment #13)
> Sorry for the mess :) 
> The problem is that you setting "background-attachment: fixed". Do you really
> want this? Generally this means that a background does not move when you 
scroll
> a page.
> For the exact behaviour, see 
http://www.hixie.ch/tests/evil/mixed/bgafixed.html
> I think you should mark this bug as INVALID.

Problem: note what happens when that bit of code is removed and compare it to 
IE - when I do this, the line appears wrapped, or doubled. Are you not seeing 
these results? I can do a print-screen type thing if that would help.

(In reply to comment #14)
> ... the line appears wrapped, or doubled. Are you not seeing 
> these results? I can do a print-screen type thing if that would help.

Nope. For me Firefox 1.0.3 displays the background the same way as IE6 on
win2k.
(In reply to comment #15)

OK, now it is working...indeed it is because the attachment was fixed.
Originally, image was different so maybe that's why I kept that part of the
code, don't know, apologies. But it's great to know you all were looking into
it, top reason to use FF.

Am curious as to what would happen if a larger image was used, and the coder
wanted those properties of "fixed" and "repeat-x", but guess that rarely comes up. 
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: