Re: [csswg-drafts] [css-anchor-position-1] Allow more properties in position fallbacks (#9195)

After some implementation attempts, it appears that the previous resolution wasn't made with enough care.

Margin properties are fine, but padding and border properties are problematic because they affect the internal layout of the element too much (e.g., intrinsic size, table border collapsing).

Besides, the box alignment properties (other than `justify-self` and `align-self`), which have been allowed since the `@try` rule was first added, also have the same issue.

@bfgeek and I discussed it, and think the only properties that we can safely support now are those affecting only the external geometric constraints of the element, but not anything internal.

(Not until we can properly cascade `@try` rules, which would probably take another year's effort...)

Proposal: Remove padding properties, border properties, and all box-alignment properties except self-alignment properties from position fallback rules. As a result, the remaining allowed rules will be margin, inset, sizing and self-alignment properties.

-- 
GitHub Notification of comment by xiaochengh
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9195#issuecomment-1751397187 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 6 October 2023 20:59:46 UTC