Skip to content

[css-anchor-position-1] Add more properties to position fallback #9244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

xiaochengh
Copy link
Contributor

Per resolution #9195 (comment)

This PR allows more properties in a @position-fallback rule:

  • All margin properties in CSS-BOX-4:
    • margin-top, margin-bottom, margin-left, margin-right and their logical equivalents
    • margin, margin-block, margin-inline shorthands
    • margin-trim, as it's also a margin property if I read the spec correctly
  • All border properties in CSS-BOX-4:
    • border color, border style and border width properties, and related shorthands
  • All padding properties in CSS-BOX-4:
    • padding-top, padding-bottom, padding-left, padding-right and their logical equivalents
    • padding, padding-block, padding-inline shorthands

Note: CSS-BOX-4 doesn't explicitly list border radius and border images as border properties, but they should also be allowed in position fallbacks. I suppose this is and editorial issue that should be fixed in CSS-BOX-4 instead.

@xiaochengh xiaochengh requested a review from tabatkins August 25, 2023 23:17
@tabatkins tabatkins merged commit 6e0b9ee into w3c:main Aug 25, 2023
@xiaochengh xiaochengh deleted the more-fallback-properties branch August 25, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants