Skip to content

[css-text] Clarify how letter-spacing and word-spacing should affect tab-size. #643

Closed
@wisniewskit

Description

@wisniewskit

Recently it was resolved that letter-spacing and word-spacing should affect tab-size, as per this proposal:

tab stops are calculated as
n*( width of U+0020 plus letter-spacing plus word-spacing)

But this seems strange to me, as tab characters are already affected by letter-spacing, aren't they? (That's what I'm seeing while playing around in devtools in Firefox and Chrome). Why count letter-spacing twice for tabs?

In addition, tabs aren't word-separators in the spec, which also states:

If there are no word-separator characters, or if a word-separating character has a zero advance width (such as the zero width space U+200B) then the user agent must not create an additional spacing between words.

How is this meant to be reconciled? Should the word-spacing be applied regardless of whether there are word-separator characters in the run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions