W3C home > Mailing lists > Public > www-style@w3.org > June 2013

[css-conditional][cssom] Why CSSConditionRule?

From: Simon Pieters <simonp@opera.com>
Date: Tue, 18 Jun 2013 09:04:36 +0200
Message-ID: <51C00684.9040107@opera.com>
To: "www-style@w3.org" <www-style@w3.org>
In http://lists.w3.org/Archives/Public/www-style/2012Aug/0749.html it 
was decided to mint the CSSConditionRule interface and have 
CSSSupportsRule and CSSMediaRule inherit from it.

I don't understand the usefulness of exposing a new property on 
CSSMediaRule that does the same thing as mediaText. Also, conditionText 
has different requirements for CSSMediaRule and CSSSupportsRule. Why do 
we want to have the same attribute for things that are different? 
https://bugzilla.mozilla.org/show_bug.cgi?id=814907#c3 suggests 
@-moz-document is again different.

I think it would be better continue with just having .mediaText on 
CSSMediaRule, drop the CSSConditionRule interface, and let 
CSSSupportsRule and CSSDocumentRule have .conditionText with the 
interface-specific requirements.

-- 
Simon Pieters
Opera Software
Received on Tuesday, 18 June 2013 07:03:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC