Replies: 1 comment 6 replies
-
|
First of all, I'm all for naming for having more correct (and hence less confusing) names!
My best guess is that there's no (technical) problem with class names being prefixes of other class names (even though it might by a tad confusing for humans). I'd say we give it a go, and prioritize correct naming.
Yes, that's correct AFAIK.
This would probably work if we put it in the new |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ref: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model/CSS_Declaration
We still have some misnamed classes in
RuleSet:RuleSetrepresents what is now known as a declaration block (the declaration block does not include the selector);DeclarationBlockrepresents what is now known as a rule (a rule has a selector and a declaration block, or may be an at-rule);AtRuleSetrepresents what is now known as an at-rule;Rule.To rename these in a seamless manner presents some problems:
RuleSettoDeclarationBlockunless we move it to a different namespace, as aDeclarationBlockclass already exists (and will need aclass_alias()during the transition period);Rule, but there was previously a class namedRulein that namespace (which currently has aclass_alias()); so if we renamedDeclarationBlocktoRuleand moved it there, it may cause upgrade issues (we can make a major release to absolve responsibility, but I'd rather not land users with unexpected problems);AtRuleSetimplementsAtRule, though I think changing the class name to be the same as the interface name will be possible withuse as.@sabberworm, @oliverklee, would welcome your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions