• 1.0.0 9e04eec072

    feat: Add percentage support to CSS properties (#738)
    Compile Release / build-release (push) Canceled after 0s

    bot released this 2026-02-08 21:32:45 +00:00 | 689 commits to develop since this release

    Summary

    What is the goal of this PR?

    • Adds percentage-based value support to CSS properties that accept
      percentages (padding, margin, text-indent)

    What changes are included?

    • Adds Percent as another CSS unit
    • Passes the viewport width to fromCssStyle so that we can resolve
      percentage-based values
    • Adds a fallback of using an emspace for text-indent if we have an
      unresolvable value for whatever reason

    Additional Context

    • This was missed in my CSS support feature, and the fallback when we
      encounter a percentage value is to use px instead. This means 5% (which
      would be ~30px on the screen) turns into 5px. When percentages are used
      in text-indent, this fallback behavior makes the indent look like a
      single space character. Whoops! 😬

    My test EPUB has been updated
    here with percentage based
    CSS values at the end of the book.


    AI Usage

    While CrossPoint doesn't have restrictions on AI tools in contributing,
    please be transparent about their usage as it
    helps set the right context for reviewers.

    Did you use AI tools to help write this code? YES, Claude Code

    Downloads