Re: [csswg-drafts] [css-selectors] Standardize `:(‑moz‑)first‑node` and `:(‑moz‑)last‑node` (#3216)

For me, I am looking at styling these buttons differently:
```
<button><svg>...</svg> Click Here</button>
<button>Click Here <svg>...</svg></button>
```
But unfortunately there is no way to determine if the text is before or after the svg.
So maybe we could then do:
`button:has( > svg:not(:last-node))` or `button:has( > svg:not(first-node))`
without it affecting:
`<button><svg>...</svg></button>`


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


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

Received on Thursday, 18 July 2024 03:09:06 UTC