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 15384 - Value assignment on shorthand properties is not well-defined
Summary: Value assignment on shorthand properties is not well-defined
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
Depends on:
Reported: 2012-01-02 13:06 UTC by Anton P
Modified: 2013-08-08 13:26 UTC (History)
3 users (show)

See Also:


Description Anton P 2012-01-02 13:06:03 UTC
Reported by √ėyvind Stenhaug

Value assignment on shorthand properties is not well-defined.  For example, some combinations of longhand property values cannot be represented by a value on the corresponding shorthand property:

What is the computed value of 'border' given the following computed values of longhand properties?

border-top-style: solid
border-right-style: none
border-bottom-style: none
border-left-style: none

Conversation begins:

Bug description:
Comment 1 Anton P 2012-01-02 13:09:13 UTC
Gecko apparently doesn't handle getPropertyValue on computed style for shorthand properties in an ideal manner (cf , ) which may be as a result of this issue.
Comment 2 Anton P 2012-01-02 13:13:58 UTC
Related: some implementers think that shorthands should "just work" so that there's no noticeable affect if a property changes from being a longhand to a shorthand property, unless the value specified is one that can't be specified in the original (now shorthand) form.  (eg: )

That does doesn't solve the hard case described, though.
Comment 3 Anton P 2012-01-02 22:49:14 UTC
Bug 15387 is another example of this bug.