<?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>15458</bug_id>
          
          <creation_ts>2012-01-08 19:46:38 +0000</creation_ts>
          <short_desc>Computed Value line of &apos;content&apos; property fails to handle the case of &lt;string&gt; or &lt;counter&gt;</short_desc>
          <delta_ts>2012-12-04 00:52:51 +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></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="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          <cc>simon.sapin</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62387</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-08 19:46:38 +0000</bug_when>
    <thetext>Reported by Simon Sapin.

The Computed Value line of the &apos;content&apos; property defined in 12.2
(http://www.w3.org/TR/CSS2/generate.html#content) says:

  # On elements, always computes to &apos;normal&apos;. On :before and
  # :after, if &apos;normal&apos; is specified, computes to &apos;none&apos;.
  # Otherwise, for URI values, the absolute URI; for attr()
  # values, the resulting string; for other keywords, as
  # specified.

This fails to handle the case of &lt;string&gt; or &lt;counter&gt;.

Conversation begins: http://lists.w3.org/Archives/Public/www-style/2011Nov/0797.html

Bug description: http://lists.w3.org/Archives/Public/www-style/2011Nov/0798.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62388</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-08 19:48:56 +0000</bug_when>
    <thetext>With &lt;string&gt;, presumably the computed value should be the same as the specified value.

With &lt;counter&gt;, should it be treated like attr()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62389</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2012-01-08 20:01:58 +0000</bug_when>
    <thetext>Anton, by &lt;counter&gt; treated like attr(), do you mean the computed value should be string representation of the counter value?

Arguably CSS 2.1 counters could be resolved to their value at &quot;computed value time&quot;, but I do it later in WeasyPrint (when creating boxes from elements.) Not sure what other UAs do. However, css3-page introduce page based counters. These can definitely not have a value by the time computed values are required. (In paged media, we only know where page breaks end up when doing layout.)

I propose that both &lt;string&gt; and &lt;counter&gt; stay as specified in the computed value. Actually, &quot;for other keywords&quot; just need to become &quot;for other values&quot;, which I think is what was intended.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62392</commentid>
    <comment_count>3</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-08 20:48:58 +0000</bug_when>
    <thetext>Thanks.

I agree with your proposal
s/keywords/values</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62575</commentid>
    <comment_count>4</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-11 21:36:08 +0000</bug_when>
    <thetext>Tab Atkins Jr writes:

2.1 doesn&apos;t actually specify one way or another whether counters are
kept as-is or turned into the string they represent at computed-value
time.  However, all browsers agree that they&apos;re kept as-is.  Lists
matches this in its definition of the computed value of &apos;content&apos; on
::marker.

http://lists.w3.org/Archives/Public/www-style/2012Jan/0493.html

This supports the proposal
s/keywords/values/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>