w3c / w3c/csswg-drafts

[css-text][css-flexbox][css-grid] Rethinking values for wrap-before and wrap-after

Open
#4,035 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-text-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

CSS Text 4 currently defines wrap-before and wrap-after with the values auto, avoid, avoid-line, avoid-flex, line, and flex.

I am wondering whether the values can be consolidated, especially avoid-flex and flex seem redundant to avoid-line and line.

It is also unclear to me what's the difference between avoid and avoid-line. As I understand it, both avoid line breaks before or after an inline-level box or a flex item.

Furthermore, the properties may also apply to other boxes in the future like grid items, so maybe a more general keyword than line could be used instead, like wrap.

Applying those changes the syntax would then shrink to auto | avoid | wrap.

Sebastian

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS Text 4 definition of wrap-before and wrap-after linked in the issue. Compare the current auto, avoid, avoid-line, avoid-flex, line, and flex values, including their interaction with inline-level boxes and flex items. Done requires an agreed value set and corresponding specification updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.