[csswg-drafts] [css-inline-3] Negative margins on inline boxes (#8182)

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

== [css-inline-3] Negative margins on inline boxes ==
Was just thinking about the question of margins on inline boxes, particularly negative margins, and there's a bit of a problem with how it's defined to work atm:

Consider an inline element with a negative margin:

```
 <span style="margin-block: -0.1em">set tight</span>
```

If we introduce another element, this prevents the margin from acting as expected:

```
 <span style="margin-block: -0.1em">set <em>tight</em></span>
```

Generally we try to make sure adding unstyled inline elements has no effect on layout, so we need to do something to fix this, maybe propagating the negative margin to descendants somehow?

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


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

Received on Friday, 2 December 2022 22:14:33 UTC