W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

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

From: Mike Bremford via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 May 2020 09:56:47 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-625552917-1590573405-sysbot+gh@w3.org>
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.
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC