-
Notifications
You must be signed in to change notification settings - Fork 711
[css-text] Hyphenation styling should apply to the wbr element #5972
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
Depending on exactly what you mean, that seems wrong to me.
However:
|
Agenda+ to propose closing as wontfix, as per the logic in the previous comment. |
The CSS Working Group just discussed
The full IRC log of that discussion<emeyer> Topic: Hyphenation styling should apply to the wbr element<florian> s/a novelty thing/novelty hyphens/ <fantasai> -> https://github.com//issues/5972#issuecomment-826582035 <emeyer> github: https://github.com//issues/5972 <emeyer> fantasai: We propose to close WONTFIX becase <wbr> is a soft-wrap but not a hyphenation opportunity <emeyer> …HTML could extend itself to do more, but current spec is written that if that ever happens, this will all apply to that correctly <TabAtkins> +1 to wontfix <emeyer> RESOLVED: Close WONTFIX |
@r12a can you confirm that you are willing to accept the WG resolution? |
What's the rationale for concluding this? For example, if you look at the example in the HTML Standard, it would change the reading of the text if no hyphen is applied when the long 'word' is broken over a line end. (The HTML spec makes no mention of hyphenation, of course.) If you wanted wbr to split things like URLs so that they can break across a line, but not with hyphenation, you could style the text to have hyphens:none. I'm not strongly opposing the decision at the moment, but i'd like to create a better understanding of whether there really is a difference between the way wbr works here. Either way, it should probably be documented in one spec or another. |
|
If |
https://drafts.csswg.org/css-text-4/#hyphenation
https://drafts.csswg.org/css-text-3/#hyphenation
This issue picks up from whatwg/html#6326
The
hyphens
property description mentions­
, but doesn't mention thewbr
element. I think that wheneverwbr
is used inside a word it should also be treated as a hyphenation opportunity. In other words, the set of things described in the spec as 'conditional' or 'soft' hyphen should include not only­
but alsowbr
.It would probably be useful to introduce
­
andwbr
in the paragraph that defines a hyphenation opportunity. Or have a separate paragraph that defines what consitutes a 'soft-hyphen' (maybe better because you can then reference that definition from various places where conditional or soft hyphens are mentioned).In addition to the
hyphens
property this would also apply to thehyphenate-character
property (especially) and other such.I don't expect there to be any conflict between the use of
wbr
in scripts like Japanese to indicate line-break opportunities between words and its use in other languages to indicate hyphenation opportunities, since the former scripts won't apply any special hyphenation behaviours.The text was updated successfully, but these errors were encountered: