Skip to content
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

Support hyphenate-limit-chars #1483

Open
yisibl opened this issue Oct 14, 2022 · 3 comments
Open

Support hyphenate-limit-chars #1483

yisibl opened this issue Oct 14, 2022 · 3 comments

Comments

@yisibl
Copy link
Member

yisibl commented Oct 14, 2022

Spec: https://w3c.github.io/csswg-drafts/css-text-4/#propdef-hyphenate-limit-chars

IE:

https://msdn.microsoft.com/en-us/library/hh771865(v=vs.85).aspx

-ms-hyphenate-limit-chars: auto | <integer> {1,3}

Safari

Safari support the -webkit-hyphenate-limit-before, -webkit-hyphenate-limit-after and -webkit-hyphenate-limit-lines properties

Chrome

WIP https://bugs.chromium.org/p/chromium/issues/detail?id=924069
https://groups.google.com/a/chromium.org/g/blink-dev/c/CwUy1UoqyVQ

@ai
Copy link
Member

ai commented Oct 14, 2022

  1. Can you explain how to convert standard property to Safari’s one?
  2. Does IE and standard property have the same values?

@yisibl
Copy link
Member Author

yisibl commented Oct 15, 2022

I am also not familiar with this property and need further investigation by the implementer.

@r-thomson
Copy link

  • Can you explain how to convert standard property to Safari’s one?

I believe that the second and third arguments for hyphenate-limit-chars map to -webkit-hyphenate-limit-before and -webkit-hyphenate-limit-after, respectively.

The first value is the minimum word length before words should be hyphenated. The second value is the minimum number of characters before the hyphen. The minimum number of characters after the hyphen will be set equal to the second value.

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

3 participants