autoprefixer
autoprefixer copied to clipboard
Support hyphenate-limit-chars
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
- Can you explain how to convert standard property to Safari’s one?
- Does IE and standard property have the same values?
I am also not familiar with this property and need further investigation by the implementer.
- 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.