[csswg-drafts] [css-inline-3] initial-letters: nteraction of shape-margin and regular margin (#5119)

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

== [css-inline-3] initial-letters: nteraction of shape-margin and regular margin ==
@fantasai as you're working on these.
```css
p::first-letter {
    initial-letters: 3;
    margin-right: 20px;
    shape-margin: 10px;
    initial-letters-wrap: all;
}
```
Do we add the 20px margin to whatever the 10px margin around the shape is calculated to be at that point, or do we use the maximum of the two values?

We've implemented using the maximum of the two margins, which seems to work better - you can set `shape-margin` to ensure the shape isn't adhered to too closely, and `margin-right` to push the content along. This also makes more sense with `initial-letters-wrap: first`, where both properties apply to the first line but only `margin-right` on subsequent lines.

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

Received on Wednesday, 27 May 2020 09:56:48 UTC