Re: [csswg-drafts] [cssom-1] [css-cascade-4] Extend CSSImportRule to expose supports condition (#8710)

Wrt elika's comment about consistent naming:

* the CSSSupportsRule uses the generic `conditionText` from the CSSConditionRule superclass
* CSSImportRule uses `media` for its media condition, but that's a `MediaList` object, rather than a string

While a plain `supports` attribute sounds nice, I propose we avoid it for a possible future where we have an object representing a supports condition in more detail. Instead I recommend `supportsText` as the attribute name, matching `conditionText` from CSSConditionRule, and things like `selectorText` from CSSStyleRule.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8710#issuecomment-1523770683 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 April 2023 17:05:56 UTC