<?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>15387</bug_id>
          
          <creation_ts>2012-01-02 15:01:31 +0000</creation_ts>
          <short_desc>Not clear what &apos;inherit&apos; on shorthand properties means</short_desc>
          <delta_ts>2012-12-04 00:52:19 +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>kennyluck</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62199</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-01-02 15:01:31 +0000</bug_when>
    <thetext>Reported by Øyvind Stenhaug

The spec is not clear about how a value of &apos;inherit&apos; on a shorthand property is treated.  In particular the proposal in Bug 14420 for defining how &apos;inherit&apos; is treated doesn&apos;t make sense for shorthand properties since it depends on knowing the computed value of the parent&apos;s shorthand property, a concept which is not well defined as per Bug 15384 (value assignment on shorthand properties is not well-defined).

It has been proposed to make it explicit in 6.2.1 (The &apos;inherit&apos; value) [http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit] that setting &apos;inherit&apos; on a shorthand is equivalent to setting &apos;inherit&apos; on all the corresponding longhand properties; however, this doesn&apos;t actually solve the problem since that&apos;s the expected mechanism of shorthand properties in any case.

Rather, this bug is a special case of Bug 15384 in that the specified value of a shorthand property is not well defined in the case that the pre-cascade declared value of the property is &apos;inherit&apos;.

Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2011Oct/0473.html

Proposal: http://lists.w3.org/Archives/Public/www-style/2011Oct/0513.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65003</commentid>
    <comment_count>1</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2012-03-05 02:22:51 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; It has been proposed to make it explicit in 6.2.1 (The &apos;inherit&apos; value)
&gt; [http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit] that setting
&gt; &apos;inherit&apos; on a shorthand is equivalent to setting &apos;inherit&apos; on all the
&gt; corresponding longhand properties; 

There was a proposal from Tab[1], quoted here:

  | If &apos;inherit&apos; is given as a value to a shorthand property, it has the 
  | same effect as specifying &apos;inherit&apos; for all of the longhand
  | properties that the shorthand represents (even if the combined
  | computed values of the longhand properties end up being an
  | invalid value for the shorthand).

The only thing that worries me a little is the &quot;specifying&quot; there, which weakly implies &quot;specified value&quot; (this is silly, but well). I suggest s/specifying/setting/ or s/specifying/giving/ or something else. No strong opinion though.

[1] http://lists.w3.org/Archives/Public/www-style/2011Nov/0420</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>