Skip to content

[css-display] Display values for <br> and <wbr> #610

Closed
@AndySky21

Description

@AndySky21

display-outside values

<br> and <wbr> elements were originally meant to be rendered according to a content property. That was first changed for <br>, probably because content is not optimized for performance. Nor was that property usable with ::after for legacy reasons: it could break those pages using br::after, because authors' rule would override the line break instead of adding something to it. The pseudo-element could have been used for <wbr>, though.

On September 2014, when <br> had been turned into display-outside: newline since at least two months, it was decided that <wbr> could become something similar: and thus display-outside: break-opportunity was born.

Two years have passed and still there's no trace of either display value. Googling it out, I noticed that it was discussed briefly on Feb 23, 2015 (one year and a half ago), when performance considerations were the only obstacle to reverting both elements back to the content scenario (and as of now content apparently applies to real elements only with image and URL values - which is not sure either).

Now I'd like to ask you a couple of questions:

  1. Was the display-outside solution deemed not viable, despite the fact that browser vendors would have preferred such a solution? What are the considerations against it?
  2. In case it cannot be used, how likely is it that content: <string> applies to at least a subset of HTML elements and how bad would the performance impact be?
  3. Will either of the scenarios above be compatible with HTML spec concept of styling <br> (and possibly <wbr>)?

Related issue: w3c/html#586

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