: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 ❌
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature