Skip to content

[css-?] Standardize text-stroke #4795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
valtlai opened this issue Feb 20, 2020 · 3 comments
Open

[css-?] Standardize text-stroke #4795

valtlai opened this issue Feb 20, 2020 · 3 comments

Comments

@valtlai
Copy link
Contributor

valtlai commented Feb 20, 2020

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)

[#963 (comment) refers to CSS Fill and Stroke Module, but it seems to only apply to SVG elements.]

@valtlai valtlai changed the title Standardize text-stroke [css-?] Standardize text-stroke Feb 20, 2020
@AmeliaBR
Copy link
Contributor

The CSS Fill and Stroke module is the work-in-progress definition for standardizing fill and stroke for all CSS text.

We are waiting on interest from browsers to actually add experimental support & see if the definitions are web compatible. Maybe file browser bugs asking them to implement fill and stroke (and the proposed long hands) for non-SVG text?

@SelenIT
Copy link
Collaborator

SelenIT commented Feb 24, 2020

Doesn't the -webkit-text-prefixed implementation (existing in all major browsers, as mentioned by @valtlai) count as experimental support (maybe partial)?

@r12a
Copy link
Contributor

r12a commented Feb 16, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants