Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14800 closed bug (notabug)

IGNORE ILLEGAL CSS SHORTHAND VALUES FOR PROPERTIES

Reported by: LeinardoSmith Owned by:
Priority: undecided Milestone: None
Component: css Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:

Description

If illegal values such as "clip" are applied along with other values in the shorthand format property such as background, the whole series of values is not applied instead of just the clip value being ignored.

For example:

$test.css("background", "white no-repeat content-box clip");

When accessing the background property:

console.log($test.css("background"));

Returns:

null

Should Return:

white no-repeat content-box

Change History (1)

comment:1 Changed 6 years ago by gibson042

Component: unfiledcss
Resolution: notabug
Status: newclosed

From http://api.query.com/css:

Retrieval of shorthand CSS properties (e.g., margin, background, border), although functional with some browsers, is not guaranteed.

Note: See TracTickets for help on using tickets.