W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

[csswg-drafts] [selectors‑5] Making `::` a (pseudo‑)combinator (#5472)

From: ExE Boss via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Aug 2020 12:20:57 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-686274395-1598444455-sysbot+gh@w3.org>
ExE-Boss has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors‑5] Making `::` a (pseudo‑)combinator ==
Due to backwards compatibility issues, `::` can’t be a proper combinator (see <https://github.com/w3c/csswg-drafts/issues/2284#issuecomment-364580632>).

There’s however nothing preventing us from making `::` a combinator‑like thing that would mostly preserve the current semantics while allowing for <https://github.com/w3c/csswg-drafts/issues/2284#issuecomment-679249349> and <https://github.com/w3c/csswg-drafts/issues/4565>.

---

The goal is to support:

```css
* :: *:is(before, after, marker) { … }
/* being roughly equivalent to: */
*::before, *::before::marker,
*::after, *::after::marker,
*::marker,

*::slotted(*)::before, *::slotted(*)::before::marker,
*::slotted(*)::after, *::slotted(*)::after::marker,
*::slotted(*)::marker,

*::part(*)::before, *::part(*)::before::marker,
*::part(*)::after, *::part(*)::after::marker,
*::part(*)::marker { … }
```

But for backwards compatibility:

```css
*::*:is(before, after, marker) { … }
/* meaning: */
*::before, *::after, *::marker { … }
```

and

```css
* ::*:is(before, after) { … }
/* meaning: */
* ::before, * ::after, * ::marker { … }
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5472 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 August 2020 12:20:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC