<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17764</bug_id>
          
          <creation_ts>2012-07-12 21:04:18 +0000</creation_ts>
          <short_desc>Inconsistency between computed value of &apos;letter-spacing&apos; and &apos;word-spacing&apos;</short_desc>
          <delta_ts>2012-12-04 00:52:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/CSS2/text.html#spacing-props</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Glenn Adams">glenn</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          <cc>antonsforums</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69920</commentid>
    <comment_count>0</comment_count>
    <who name="Glenn Adams">glenn</who>
    <bug_when>2012-07-12 21:04:18 +0000</bug_when>
    <thetext>In CSS2.1 [1], the computed value of letter-spacing is specified to be:

Computed value: &apos;normal&apos; or absolute length

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

Computed value: for &apos;normal&apos; the value &apos;0&apos;; 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 &apos;normal&apos; instead of &apos;0&apos;.

It is also possibly a problem that either of these should return &apos;0&apos; instead of &apos;0px&apos;, 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 &apos;normal&apos; the value &apos;0px&apos;; otherwise the absolute length

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

    </bug>

</bugzilla>