[css-conditional][cssom] Why CSSConditionRule?

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