-
Notifications
You must be signed in to change notification settings - Fork 642
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
[css-text] can tab-size be zero? #460
Comments
I think it should allow any value, even negative ones. Basically anything text-indent does. |
I guess not, otherwise Phase II of the White Space Processing Rule should handle that explicitly because there is no multiple of zero other than zero. But I guess allowing zero is probably fine. It can explicitly state that, if
You may need to specify what would happen in that case explicitly. The current rule would make negative ones just behave like their absolute value I believe. |
I think we should exclude 0 and negative values. I mean, sure, if we allow them people are bound to eventually find creative ways to use them and then we'll be stuck in supporting them, regardless of how little sense it makes. But this is not supported by use cases, so I think we should keep it simple. |
Excluding zero is not simple. As Oh, by the way, what |
@upsuper could you explain a bit more why
is ok whlie
is not? I'm not very motivated to spend time to discuss how zero should work when there's no author benefits, and to make it to work, but you're right that it's not well-defined today and if we were to allow, we need to define it. |
See the second point of this email from @tabatkins. |
Oh thanks, I see, I would then prefer:
this route than to be creative for how zero should work here. I hope it's not too controversial for the minimum 1 for integer. Not sure about length but I'm fine with any values such as 1px. WDYT? |
That suggestion is purely for It seems to me using the following text to replace step 2 of 4.1.3. Phase II: Trimming and Positioning should work:
This should at least give people an intuitive result if not that useful. |
I'm ok with it, but I'm afraid special casing for non-useful staff purely adds burden to us, to ensure selection works good, editing works good, etc. While I agree that it's one possible solution, I have mild preference to define the minimum. |
After Rossen's request during today's confcall, I am perfectly fine with 0 being allowed for |
Oh I wasn't aware this was on agenda, sorry to miss the call. I'm fine too if this was defined and all impls agree. Blink does implement it as zero-width character today but didn't find the spec defines it and we have no tests for it.
From a small test, it looks like Gecko/WebKit/Blink interpret |
That probably makes sense, but I guess css-values may want to say something for this. |
The tab-size property defines:
Is zero intentionally allowed?
The text was updated successfully, but these errors were encountered: