Skip to content

Latest commit

 

History

History
67 lines (53 loc) · 1.95 KB

CHANGELOG.md

File metadata and controls

67 lines (53 loc) · 1.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

(Unreleased)

Changed

  • Styles must now be passed through flow.style before being given to h.
  • cascadeStyles has been removed. Pass an array of styles to h instead.
  • Removed getRootStyle
  • paintToCanvas no longer has a density argument. Use the zoom CSS property instead.

Added

  • Added support for the zoom property
  • Support for multiple styles on an element

Fixed

0.4.0

Added

  • Support for overflow
  • Added CHANGELOG.md

0.3.0

Added

  • t function to create text nodes (like h but for text)

Fixed

  • Emojis that use a ZWJ sequence are now rendered correctly
  • Minor memory leak in font selection
  • em units only evaluate against the parent for font-size
  • Strange font selection issue that picked bold or italic
  • Memory leak in word cache
  • Positioned > float > text could paint twice
  • Relatively positioned block containers of text could paint twice

0.2.0

Changed

  • Exported cascadeStyles() and HTMLElement
  • Now uses fetch() instead of fs in Node, in case remote URLs were registered

Added

  • API to scan documents and load Noto fonts from FontSource to cover the document
  • Support for overflow-wrap (word-break)
  • Support for outputting SVG

Fixed

  • Never try to register fonts twice
  • Infinite loop with two nested floats
  • Intrinsicly sized content could sometimes wrap even though it was sized not to wrap

0.1.2

Added

  • Exposed APIs for querying the DOM and types for painting into areas on top of it
  • Allow strings to be passed to dom()

0.1.1

First release! CSS 2 inline layout is complete: floats, inline-blocks, bidi, alignment, etc. Paint to canvas and HTML.