Bug Tracker

Modify

Ticket #7637 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 years ago

$(a).css('background') return empty string

Reported by: gaetan Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

$(a).css('background')

return empty string.

But the setter

$(a).css('background','some value')

works.

I use

$(a).css('background-image')

to have the good value.

In the documentation, since 1.0, background is not supported, but it works for me until 1.3.2.

(Firefox 3.6.12 && Google Chrome 5.0.375.70)

Element :

<a href=​"#​" style=​"background:​url(image.png)">link</a>

Change History

comment:1 Changed 2 years ago by jitter

  • Status changed from new to closed
  • Resolution set to wontfix

As you stated yourself, the documentation for  css() is clear about this:

Shorthand CSS properties (e.g. margin, background, border) are not supported.

Last edited 2 years ago by jitter (previous) (diff)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.