w3c / w3c/csswg-drafts

[css-pseudo] Proposal: Add `text-wrap: balance` to supported `::cue` properties

Open
#8,640 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Seems like a perfect fit and could even be a UA default style addition.

  • lines never go over 3 lines
  • already has a max inline size style
  • balanced text is more pleasing to the eye
  • balanced text would have less widows

I went to prototype the thought this morning and remembered there's an allow list for ::cue and that this style would be thrown away as it's not in the list.

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 by reading the ::cue property allow list in the relevant CSS specification and compare how supported properties are defined. Check whether text-wrap: balance is permitted there and how the existing ::cue rules handle it; done means the proposal is resolved with the allowed-property behavior and any UA-default question clearly specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.