Opened 8 weeks ago
Last modified 7 weeks ago
#64972 new defect (bug)
safe_style_css missing anchor position properties
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 7.1 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch has-unit-tests |
| Focuses: | css | Cc: |
Description
The safecss_filter_attr() functino and safe_style_css filter are missing anchor position CSS properties
https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Anchor_positioning
Change History (2)
#1
@
7 weeks ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 7.1
- Version trunk deleted
This ticket was mentioned in PR #11419 on WordPress/wordpress-develop by @deepakprajapati.
7 weeks ago
#2
- Keywords has-patch has-unit-tests added; needs-patch removed
## Summary
This updates safecss_filter_attr() to allow CSS anchor positioning properties in the safe_style_css allowlist.
Added properties:
anchor-nameanchor-scopeposition-anchorposition-areaposition-tryposition-try-fallbacksposition-try-orderposition-visibility
A regression test was also added to cover the new properties.
Trac ticket: https://core.trac.wordpress.org/ticket/64972
## Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5
Note: See
TracTickets for help on using
tickets.
@dannyreaktiv Thank you. This makes sense, also considering that other such positional properties are allowed, including
position,top, andz-index.Do you want to work on a PR?