Skip to content

Requires line-height to be set to work (Chrome 64 Mac OS X) #5

@jonjhiggins

Description

@jonjhiggins

I guess this repo has been superseded by type.js but was just giving it a spin (I only wanted the widow functionality) and figured this info might be useful for someone doing the same:

I noticed that the widow functionality only worked when a line-height is supplied:

No line-height: https://codepen.io/jonjhiggins/pen/WMZdpM
Line-height: https://codepen.io/jonjhiggins/pen/KQXXbd

This looks to be due to Chrome specifying the line-height in JS as 'normal' instead of a number, causing getstyle to return NaN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions