This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27590 - "If declaration is null, return the empty string..."
Summary: "If declaration is null, return the empty string..."
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
Depends on:
Reported: 2014-12-11 23:42 UTC by Josh Matthews
Modified: 2014-12-12 15:16 UTC (History)
1 user (show)

See Also:


Description Josh Matthews 2014-12-11 23:42:34 UTC

If declaration is null, return the empty string and terminate these steps. 

This reads ambiguously to me. We're in the middle of looking at a list of matching longhands; should any missing longhand property cause the entire getPropertyValue algorithm to return the empty string?
Comment 1 L. David Baron (Mozilla) 2014-12-12 00:20:19 UTC
That's correct; if you're asked for a shorthand, and not all of its subproperties are set, the result is the empty string.
Comment 2 Simon Pieters 2014-12-12 06:15:43 UTC
Yes. Would a note help?
Comment 3 Josh Matthews 2014-12-12 15:16:36 UTC