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

Line clamp property needs webkit vendor prefix #567

Merged
merged 1 commit into from
Feb 12, 2018

Conversation

jschr
Copy link
Contributor

@jschr jschr commented Feb 12, 2018

What:
The lineClamp property needs to be vendor prefixed to WebkitLineClamp. Resolves #561.

Why:
The lineClamp property doesn't work without the prefix and WebkitLineClamp is not in the unitless exceptions list so 'px' is added to the final rule.

How:
Replace lineClamp with WebkitLineClamp in the unitless exceptions.

Checklist:

  • Documentation N/A
  • Tests
  • Code complete N/A

Wasn't sure what kind of test you are looking for, would you mind pointing me in the right direction here? Sorry if I've missed them but I don't currently see any existing tests for this area of the code.

@tkh44 tkh44 merged commit 3592af6 into emotion-js:master Feb 12, 2018
@tkh44
Copy link
Member

tkh44 commented Feb 12, 2018

Thanks!

@jschr jschr deleted the webkit-line-clamp branch February 12, 2018 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object styles with line clamp adding 'px'
3 participants