- From: Kari Pihkala via GitHub <sysbot+gh@w3.org>
- Date: Thu, 14 Apr 2022 06:29:16 +0000
- To: public-css-archive@w3.org
You may want to consider how allowing `word-spacing` to take a number value affects SVG. [SVG1.1](https://www.w3.org/TR/SVG11/text.html#WordSpacingProperty) defines `word-spacing` so that it can accept numbers: "For SVG, if a `<length>` is provided without a unit identifier (e.g., an unqualified number such as 128), the SVG user agent processes the `<length>` as a width value in the current user coordinate system." [SVG2](https://svgwg.org/svg2-draft/text.html#WordSpacingProperty) redefines the property so that it doesn't allow lengths without a unit identifier. However, [presentation attributes](https://svgwg.org/svg2-draft/types.html#presentation-attribute-css-value) still replace instances of `<length>` in grammar with `[<length> | <number>]`. Safari, Firefox and Chrome support `word-spacing` without a unit as a presentation attribute. Safari and Chrome also support it as a style property. Here's [a JSFiddle example](https://jsfiddle.net/8c6tpr3L/3/). -- GitHub Notification of comment by karip Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3232#issuecomment-1098755884 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 14 April 2022 06:29:17 UTC