Open r12a opened 7 years ago
No, auto
does not switch sides. It only allows the position to be automatically adjusted on that side
Could we add a note or some text to clarify that?
Both Chrome and Firefox put the underline on the right by default in vertical Japanese when text-underline-position
is auto
. We should probably update the spec to allow that.
See testcase.
This is currently not allowed per spec; instead the spec has UA rules that set the behavior per language.
Do we want to
auto
to match Firefox? Firefox (and Chrome)'s current behavior is better than the specced behavior, so I think we should update the definition of auto
. Given their current behavior, it's presumably web-compatible to make such a spec change.
I think the auto
value should stay as is, and we should instead rely on the UA stylesheet to do the right thing: https://drafts.csswg.org/css-text-decor-3/#default-stylesheet
This is what WebKit implements, and I think it's sensible.
My suggestion would be to resolve with no change.
Whatever ends up being done here should be consistent with text-emphasis-position
Firefox (and Chrome)'s current behavior is better than the specced behavior, so I think we should update the definition of
auto
. Given their current behavior, it's presumably web-compatible to make such a spec change.
FWIW, it looks like Firefox, at least, has been doing this for 9 years (since https://bugzilla.mozilla.org/show_bug.cgi?id=1175789, long before text-underline-position
was supported), and as far as I recall we haven't seen any issues with this being the default (now auto
) behavior.
The CSS Working Group just discussed [css-text-decor] text-underline-position auto in vertical text
, and agreed to the following:
RESOLVED: add auto value for text-emphasis-position, and change the meaning of text-underline-position: auto to care about left vs right in vertical text
2.6. Text Underline Position: the text-underline-position property > Auto https://drafts.csswg.org/css-text-decor-3/#underline-auto
If you apply
text-underline-position: auto
, should the underline appear on the right of Japanese (and Mongolian) text, as is recommended for the default text-decoration(-line):underline values?If so, it would be good to make that clear (and btw how 'alphabetic baseline' relates to cjk positioning of an underline in vertical text).