Skip to content

[css-text] Hyphenation styling should apply to the wbr element  #5972

Open
@r12a

Description

@r12a
  1. Breaking Within Words
    https://drafts.csswg.org/css-text-4/#hyphenation
    https://drafts.csswg.org/css-text-3/#hyphenation

This issue picks up from whatwg/html#6326

In HTML, ­ represents the soft hyphen character, which suggests a hyphenation opportunity.

The hyphens property description mentions ­, but doesn't mention the wbr element. I think that whenever wbr 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 also wbr.

It would probably be useful to introduce ­ and wbr 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 the hyphenate-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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions