-
Notifications
You must be signed in to change notification settings - Fork 715
[css-text] Clarify how letter-spacing and word-spacing should affect tab-size. #643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A few thoughts here (basically crossposting from the Gecko bug):
|
Tabs are defined to be rendered as a shift in position, not as a grapheme affected by
I can clarify in dbaron wrote:
Spaces. Spaces are increased by |
Are there implementations that implement tabs in preformatted text in terms of that tab stop mechanism? It's not clear to me how it's supposed to interact with changes of font, |
|
Closing the issue, please feel free to re-open if the spec remains unclear (Wrt tab-size being applied to the containing block, if that's a problem, please file a separate issue on it.) |
Recently it was resolved that letter-spacing and word-spacing should affect tab-size, as per this proposal:
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:
How is this meant to be reconciled? Should the word-spacing be applied regardless of whether there are word-separator characters in the run?
The text was updated successfully, but these errors were encountered: