Re: [csswg-drafts] [css-sizing-4] How does height: stretch interact with margin collapsing with parent (#11044)

> So I think we need these edits:
> 
> ```diff
> diff --git a/css-sizing-4/Overview.bs b/css-sizing-4/Overview.bs
> index be943838f..b994bbcbf 100644
> --- a/css-sizing-4/Overview.bs
> +++ b/css-sizing-4/Overview.bs
>  [clip]
> + <div algorithm>
> +  A box's margin is 
> +  <dfn export>adjoining its parent for stretch-fit purposes</dfn>
> +  if all of the following are true:
> +
> +  * it is a [=block-level box=]
> +  * the margin would be [=adjoining=] its parent's matching margin,
> +   assuming the parent's [=sizing properties=] all had their [=initial values=]
> +  * the box does not have any preceding/following (as appropriate)
> +   [=in-flow=] sibling elements or [=text runs=],
> +   except [=collapsed white space=]
> +  * if the box is a [=block formatting context=],
> +   the box does not have any preceding/following (as appropriate) [=floating=] sibling elements
> + </div>
> ```

We obviously don't want to restrict that last bullet point to _block_ formatting contexts (right?). Should it link to `[=independent-formatting-context=]` instead of `[=block-formatting-context=]`?

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


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

Received on Tuesday, 19 November 2024 19:55:02 UTC