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 29595 - Clarification of behavior of CSSOM font serialized read value
Summary: Clarification of behavior of CSSOM font serialized read value
Status: RESOLVED WORKSFORME
Alias: None
Product: CSS
Classification: Unclassified
Component: Fonts (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: John Daggett
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 12:10 UTC by Dominik Röttsches
Modified: 2016-04-25 15:11 UTC (History)
3 users (show)

See Also:


Attachments

Description Dominik Röttsches 2016-04-25 12:10:13 UTC
The font: shorthand allows setting only the CSS21 font-variant properties and small-caps. However, overriding alternative values may be specified in font-variant-caps:, such as all-small-caps, petite-caps, etc.

What should be the serialized read return value when the CSSOM property style.font is accessed and values other than "small-caps" and "normal" are specified in the sub-property?

Should the value be left out, or should normal be returned for the font-variant-css21 component of the font property?
Comment 1 Tab Atkins Jr. 2016-04-25 15:11:19 UTC
Per <https://drafts.csswg.org/cssom/#serialize-a-css-value>, if you can't represent the value of all the longhands that map to a shorthand, you serialize as the empty string.