:target-within
Limited availability
The :target-within
CSS pseudo-class matches the element with an ID matching the URL fragment and its ancestors.
Learning resources on MDN
Browser support
- Chrome ❌
- Chrome Android ❌
- Edge ❌
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌