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

Re: [csswg-drafts] [css-text] letter-spacing should not apply to the end edge of a line/span? (#1518)

From: Kari Pihkala via GitHub <sysbot+gh@w3.org>
Date: Wed, 06 May 2020 06:03:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-624458214-1588745013-sysbot+gh@w3.org>
Note that changing this would affect [SVG2 letter-spacing and word-spacing](https://svgwg.org/svg2-draft/text.html#LetterSpacingProperty), because SVG2 refers to CSS Text Level 3 for letter-spacing and word-spacing definitions.

Currently, Chrome and Webkit render SVG text correctly without extra space at the end of the line. Firefox differs.

I haven't tested how browsers implement bidi text and other special cases for SVG.

Here's an [example](https://jsfiddle.net/0zd58omy/) of right aligned text in SVG and browser results:

![svg-letter-spacing](https://user-images.githubusercontent.com/6185066/81142301-fc009c00-8f77-11ea-9268-2a2716b051b7.png)


-- 
GitHub Notification of comment by karip
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1518#issuecomment-624458214 using your GitHub account
Received on Wednesday, 6 May 2020 06:04:57 UTC

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