Skip to main content

Bug Tracker

Side navigation

#14800 closed bug (notabug)

Opened February 14, 2014 11:47PM UTC

Closed February 15, 2014 01:26AM UTC

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
Attachments (0)
Change History (1)

Changed February 15, 2014 01:26AM UTC by gibson042 comment:1

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.