Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions features/target-within.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: :target-within
description: The `:target-within` CSS pseudo-class matches the element with an ID matching the URL fragment and its ancestors.
spec: https://drafts.csswg.org/selectors-4/#the-target-within-pseudo
spec: https://www.w3.org/TR/2022/WD-selectors-4-20220507/#the-target-within-pseudo
group: selectors
# BCD key removed due to no implementation. See https://github.com/web-platform-dx/web-features/issues/2339
# compat_features:
# - css.selectors.target-within
discouraged:
# reason: The `:target-within` pseudo-class was dropped from the specification in favor of `:has(:target)`.
# removal_date: 2023-08-16
according_to:
- https://drafts.csswg.org/selectors-4/#the-target-pseudo
- https://github.com/w3c/csswg-drafts/issues/8357
alternatives:
- has
- target
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://github.com/whatwg/html/pull/11426",
"This is where speculation rules' prefetch is in the process of being spec'd. Once the PR merges, change the spec url in `speculation-rules`, and remove this exception."
],
[
"https://www.w3.org/TR/2022/WD-selectors-4-20220507/#the-target-within-pseudo",
"Allowed because this is where the feature last appeared in the spec before removal."
]
];

Expand Down