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

bfgeek has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-box-4] Does margin-trim affect the computed values of margins? ==
While discussing https://github.com/w3c/csswg-drafts/issues/11325#issuecomment-2593588438 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 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11506 using your GitHub account


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

Received on Wednesday, 15 January 2025 18:09:11 UTC