W3C home > Mailing lists > Public > www-style@w3.org > December 2012

Re: [css3-cascade] style attribute should override scoped style sheets

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 18 Dec 2012 17:15:14 -0500
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Franรงois REMY <francois.remy.dev@outlook.com>, www-style list <www-style@w3.org>
Message-ID: <20121218221514.GA4223@crum.dbaron.org>
So http://dev.w3.org/csswg/css3-cascade/#cascade currently says:

  # Normal declarations from style attributes are considered to be
  # scoped to the element with the attribute, whereas important
  # declarations from style attributes are considered to be scoped
  # to the root element. [CSSSTYLEATTR]
  #
  # This odd handling of !important style attribute declarations is to
  # match the behavior defined in CSS Levels 1 and 2, where style
  # attributes simply have higher specificity than any other author
  # rules. [CSS21]

This odd handling of !important style attribute declarations seems
*inconsistent* with CSS Levels 1 and 2.  I think it would be
consistent if all declarations from style attributes were scoped to
the element with the attribute.

-David

-- 
๐„ž   L. David Baron                         http://dbaron.org/   ๐„‚
๐„ข   Mozilla                           http://www.mozilla.org/   ๐„‚
Received on Wednesday, 19 December 2012 02:37:48 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:22 UTC