Skip to content
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

[css-box-4] Does margin-trim affect the computed values of margins? #11506

Open
bfgeek opened this issue Jan 15, 2025 · 0 comments
Open

[css-box-4] Does margin-trim affect the computed values of margins? #11506

bfgeek opened this issue Jan 15, 2025 · 0 comments

Comments

@bfgeek
Copy link

bfgeek commented Jan 15, 2025

While discussing #11325 (comment) is was mentioned that margin-trim shouldn't affect the getComputedStyle of margins.

However in WPT there are a bunch of tests asserting this behaviour.
https://wpt.fyi/results/css/css-box/margin-trim/computed-margin-values?label=master&label=experimental&aligned

For most layout modes this is ~fine, however for block layout this means that theoretically the getComputedStyle of margins wouldn't round trip I think?

cc/ @fantasai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant