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.
- Styles must now be passed through
flow.style
before being given toh
. cascadeStyles
has been removed. Pass an array of styles toh
instead.- Removed
getRootStyle
- paintToCanvas no longer has a density argument. Use the zoom CSS property instead.
- Added support for the
zoom
property - Support for multiple styles on an element
- Support for
overflow
- Added CHANGELOG.md
t
function to create text nodes (likeh
but for text)
- Emojis that use a ZWJ sequence are now rendered correctly
- Minor memory leak in font selection
em
units only evaluate against the parent forfont-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
- Exported
cascadeStyles()
andHTMLElement
- Now uses
fetch()
instead offs
in Node, in case remote URLs were registered
- API to scan documents and load Noto fonts from FontSource to cover the document
- Support for
overflow-wrap
(word-break
) - Support for outputting SVG
- 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
- Exposed APIs for querying the DOM and types for painting into areas on top of it
- Allow strings to be passed to
dom()
First release! CSS 2 inline layout is complete: floats, inline-blocks, bidi, alignment, etc. Paint to canvas and HTML.