W3C home > Mailing lists > Public > public-css-bugzilla@w3.org > July 2012

[Bug 17764] New: computed value of letter-spacing vs word-spacing

From: <bugzilla@jessica.w3.org>
Date: Thu, 12 Jul 2012 21:04:18 +0000
To: public-css-bugzilla@w3.org
Message-ID: <bug-17764-5148@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17764

           Summary: computed value of letter-spacing vs word-spacing
           Product: CSS
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS Level 2
        AssignedTo: bert@w3.org
        ReportedBy: glenn@skynav.com
         QAContact: public-css-bugzilla@w3.org


In CSS2.1 [1], the computed value of letter-spacing is specified to be:

Computed value: 'normal' or absolute length

In contrast, the computed value of word-spacing is specified to be:

Computed value: for 'normal' the value '0'; otherwise the absolute length

There appears to be no reason why these are different, i.e., the computed value
of letter-spacing should take the same formulation as for word-spacing.

The present situation presents some uncertainty for the implementation of CSSOM
getComputedStyle().letterSpacing, which, by the above, would appear to dictate
returning the string 'normal' instead of '0'.

It is also possibly a problem that either of these should return '0' instead of
'0px', which is more consistent with returning a resolved (used) length value.

I recommend that the language of both of these properties specify computed
value as follows:

Computed value: for 'normal' the value '0px'; otherwise the absolute length

[1] http://www.w3.org/TR/CSS2/text.html#spacing-props

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 12 July 2012 21:04:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 12 July 2012 21:04:21 GMT