Skip to content

-webkit-line-clamp has pixel value instead of unit value #2

@lukebennett88

Description

@lukebennett88

I just tried adding this plugin to a project. I was replacing an existing plugin with the same API (https://github.com/JamesHRowe/tailwindcss-line-clamp/blob/master/index.js).

However the outputted CSS looks like this with the new plugin:

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3px;
}

image

I just had a look at the source of both hoping I could figure it out and submit a PR, but from what I can tell, they both look pretty similar and I can't see why px would be getting appended to the value.

Hopefully it's something simple!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions