Displaying 1 to 3 from 3 results

line-height - Calculate line-height of an HTML element (IE6 compatible)

  •    Javascript

This was created for provide a well-tested module for calculating line-height in pixels for trunkata, a line-based truncation library for HTML. or CommonJS syntax (see npm/component section).

computedStyle - Cross-browser currentStyle/getComputedStyle implementation

  •    Javascript

Support this project and others by twolfson via gratipay. In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint your code using npm run lint and test via npm test.

Fix-IE - Ironically-named bundle of polyfills for Internet Explorer 8-9.

  •    Javascript

Ironically-named bundle of polyfills for Internet Explorer 8-9. This works because it's returning an HTML element, detached from the document tree. The original constructor function is fired within the context of the detached HTML node, causing all references to this to point to a shadow element. All properties/methods of the function's prototype are assigned to the HTML instance too.