逗号 ("multiple selector") 是 CSS 选择器组合器吗?

Is the comma ("multiple selector") a CSS selector combinator?

我正在尝试创建一个小型 CSS 网络课程,在我继续为观看的学生定义组合器之前,我希望得到一些说明。

不过,我注意到 W3C 和 MDN 在组合器定义方面存在差异。

W3C 网站和 CSS 规范说 多重选择器 不是组合器的一部分,而 MDN 说它被归类为组合器。

MDN:https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors

我知道 MDN 遵循 WHATWG,但是其中有 CSS 组合器规范在哪里?我一直在 4.16 周围寻找组合器,但找不到任何东西。

4.16 - https://html.spec.whatwg.org/multipage/semantics-other.html#selectors

WHATWG 是否与 W3C 一样完整,或者它只是 add-on 对 W3C 规范缺失部分的补充?如果 MDN 不存在,我是否应该只参考 MDN?

相关更新:

如果有人拥有 MDN 的 wiki 编辑权限,希望您可以更改 <h2> 标题名称,因为它可能代表 table 以仅包含组合器。

从 'Combinators' 到 'Combinators & Multiple Selectors'

Link-with-bad-hash-name: https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors#Combinators

WHATWG 不对任何 CSS 规范负责。 CSS 工作组是一个 W3C 工作组。您会发现的唯一 CSS 规范都在 w3.org 中,包括 Selectors. Other specs may define their own selectors (for example, the :defined pseudo-class appears in the HTML spec),但选择器语法以及选择器的一般工作方式由 Selectors 定义。

无论如何,选择器规范是正确的:没有 "multiple selector" 这样的东西。那只是一个术语 made up by jQuery as if it were a selector itself, but it's not, it's just a notation used to separate multiple selectors. It's not a "selector" itself, let alone one called a "multiple selector", or a combinator despite what jQuery and MDN claim. The Selectors spec has a very clear and very precise definition of "combinator", one that there's no way the comma could ever fit in, instead living in its own section entirely.

另请参阅:Correct terms and words for sections and parts of selectors