wasm-html-to-image 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llms.txt CHANGED
@@ -220,7 +220,7 @@ The rendering engine couples **litehtml** (HTML/CSS layout) and **Google Skia**
220
220
  - **Floats & Clear**: `float: left | right | none`, `clear: left | right | both | none`.
221
221
 
222
222
  ### 2. Typography & Text Shaping
223
- - **Fonts**: `font-family`, `font-size`, `font-weight` (100–900, `bold`, `normal`), `font-style` (`italic`, `normal`), `font-variant`, `line-height`, `letter-spacing`, `word-spacing`.
223
+ - **Fonts**: `font-family`, `font-size`, `font-weight` (100–900, `bold`, `normal`), `font-style` (`italic`, `normal`), `font-variant`, `font-variant-*` longhands, `font-feature-settings`, `font-kerning` (`auto`, `normal`, `none`), `font-variation-settings` (variable font axes), `font-stretch` (keywords and percentages), `line-height`, `letter-spacing`, `word-spacing`.
224
224
  - **Text Alignment & Flow**: `text-align` (`left`, `right`, `center`, `justify`), `vertical-align`, `text-transform` (`uppercase`, `lowercase`, `capitalize`, `none`).
225
225
  - **Wrapping & Breaking**: `white-space` (`normal`, `nowrap`, `pre`, `pre-wrap`, `pre-line`), `text-wrap` (`wrap`, `nowrap`, `balance`), `word-break` (`normal`, `break-all`, `keep-all`), `overflow-wrap` (`normal`, `break-word`, `anywhere`).
226
226
  - **Ellipsis & Multi-line Clamping**:
@@ -229,7 +229,7 @@ The rendering engine couples **litehtml** (HTML/CSS layout) and **Google Skia**
229
229
  - **Text Stroke & Shadow**:
230
230
  - Stroke: `-webkit-text-stroke: <width> <color>` (also `-webkit-text-stroke-width`, `-webkit-text-stroke-color`, `-webkit-text-fill-color`).
231
231
  - Text Shadow: `text-shadow: offset-x offset-y blur-radius color` (multiple comma-separated shadows supported).
232
- - Text Decoration: `text-decoration` (`underline`, `line-through`, `none`, style, color, thickness, `text-underline-offset`).
232
+ - Text Decoration: `text-decoration` (`underline`, `overline`, `line-through`, `none`, style, color, thickness, `text-underline-offset`, `text-decoration-skip-ink`, `text-underline-position`).
233
233
  - Text Emphasis: `text-emphasis` (`style`, `color`, `position`).
234
234
  - **Vertical Writing & Advanced Internationalization**:
235
235
  - `writing-mode`: `horizontal-tb`, `vertical-rl`, `vertical-lr`.
@@ -295,7 +295,7 @@ When prompting an AI agent to generate HTML/CSS templates for `wasm-html-to-imag
295
295
  ## Limitations & Unsupported Features (Do NOT Use)
296
296
 
297
297
  1. **NO JavaScript Execution**: `<script>` tags, DOM events (`onclick`, `onload`), and DOM manipulations do NOT run. Always generate fully static HTML markup.
298
- 2. **NO CSS Keyframe Animations or Transitions**: `@keyframes`, `animation`, and `transition` are not animated. The engine renders static snapshots.
298
+ 2. **CSS Animation Is Sampled, Not Live**: `@keyframes` do not play by themselves and `transition` is not evaluated. Passing `animation: { duration, fps, loop }` (CLI: `--animation`) samples `opacity`, `transform` (`translate` / `rotate` / `scale`), and `color` / `background-color` keyframes into an animated WebP. Every other render is a static snapshot.
299
299
  3. **NO HTML5 Canvas Scripting**: `<canvas>` with `canvas.getContext('2d')` does not execute JavaScript. Use `<svg>` or CSS shapes instead.
300
300
  4. **NO Interactive State Styling**: Dynamic states like `:hover`, `:active`, and `:focus` do not trigger.
301
301
  5. **NO Browser Web Storage**: `window`, `document`, `localStorage`, `sessionStorage`, and `IndexedDB` are unavailable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-html-to-image",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "HTML to image converter on a single unified WASM module",
5
5
  "type": "module",
6
6
  "main": "./dist/single.js",