w3c / w3c/csswg-drafts

[css-?] Standardize text-stroke

Open
#4,795 3 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fill-stroke-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

Description

The prefixed -webkit-text-stroke, -webkit-text-stroke-color and -webkit-text-stroke-width properties are widely supported. They are currently defined in the Compatibility Standard. Browsers also support -webkit-text-fill which seems unnecessary because the color property can be used instead.

Should we standardize similar properties? Something like:

  • text-stroke-color: <color> (initially currentcolor)
  • text-stroke-width: <line-width> (initially medium like in border-width? Not 0 like in the compat spec)
  • (maybe also?) text-stroke-offset: <length>
  • text-stroke (a shorthand for the above properties)

[https://github.com/w3c/csswg-drafts/issues/963#issuecomment-274136180 refers to CSS Fill and Stroke Module, but it seems to only apply to SVG elements.]

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 Compatibility Standard's text-fill-and-stroking section, the CSS Fill and Stroke Module, and the linked CSSWG issue 963 discussion. Determine whether standardized text-stroke properties belong in an applicable specification and what their syntax and initial values should be; done requires a resolved Working Group direction and corresponding specification edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
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.