Fix cursor/background vertical alignment in SVG screenshots

- Remove dominant-baseline: text-before-edge (has Safari compatibility issues)
- Use separate y positions for rect (top of cell) and text (baseline)
- rect_y = padding + row * line_height (top of cell)
- text_y = rect_y + font_size (alphabetic baseline position)

This ensures background rects and text are properly aligned across all
browsers, fixing the half-line vertical offset on cursor blocks.
This commit is contained in:
GitHub Copilot
2026-01-24 19:55:45 +00:00
parent 1d09ff151f
commit 1f5e5c2c31
5 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual-webterm"
version = "0.3.11"
version = "0.3.12"
description = "Serve terminal sessions over the web"
authors = ["Will McGugan <will@textualize.io>"]
license = "MIT"