- From: tomasts248 via GitHub <sysbot+gh@w3.org>
- Date: Mon, 09 Sep 2024 18:44:28 +0000
- To: public-css-archive@w3.org
tomasts248 has just created a new issue for https://github.com/w3c/csswg-drafts:
== Question: Whats the anchor in a relative selector? ==
Hello,
Sorry if this is the wrong place.. but I wasn't sure where should I ask for clarification on this, I asked on forums but I didn't get clarification on this and I know here there are experts on CSS, so I was reading: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors/Selector_structure#relative_selector
and I'm not sure which part of the following examples from MDN are the anchor part?
```
:has(+ div#topic > #reference) {
}
:has(> .icon) {
}
dt:has(+ img) ~ dd {
}
```
My bet is that these are the anchors:
```
div#topic > #reference
.icon
img
```
And also if im getting this correctly, a relative selector would be any function with parameters used in the selector or that is incorrect?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10856 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 September 2024 18:44:29 UTC