Skip to content

fix: clear inherited ODF backgrounds and borders - #1089

Merged
andiwand merged 2 commits into
mainfrom
review/71-odf-style-clearing
Oct 5, 2026
Merged

andiwand merged 2 commits into
mainfrom
review/71-odf-style-clearing

Conversation

@andiwand

@andiwand andiwand commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

Explicit ODF transparency and none borders now override inherited paint instead of being treated as absent properties. Clearing a fill inherited from a named cell style therefore works both immediately and after save/reopen. The resolved style still reports no background and no border as nothing, so a removed highlight reads back empty.

The existing fill-clearing test covers both automatic and named styles through save/reopen. One additional regression covers inherited cell/text backgrounds and a border shorthand with a side override. All 212 ODF tests pass.

@andiwand
andiwand force-pushed the review/70-odf-chart-geometry branch from 0842929 to 3d65efe Compare October 5, 2026 18:57
Base automatically changed from review/70-odf-chart-geometry to main October 5, 2026 19:06
andiwand and others added 2 commits October 5, 2026 21:06
A transparent colour or a none border in the resolved style changed the
public contract, so a removed highlight read back as a colour and the HTML
gained no-op declarations. Clear the inherited value while the style
resolves, and keep nullopt for no background and no border.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gb1fLafqqzehpqPuU6uBfn
@andiwand
andiwand force-pushed the review/71-odf-style-clearing branch from bb50cc0 to ad33c72 Compare October 5, 2026 19:17
@andiwand
andiwand merged commit 569ce45 into main Oct 5, 2026
24 of 25 checks passed
@andiwand
andiwand deleted the review/71-odf-style-clearing branch October 5, 2026 19:21
andiwand added a commit that referenced this pull request Oct 6, 2026
The library already uses explicit object parameters, and every CI
compiler builds them, so the recursive test lambdas keep `this auto`
instead of passing themselves. A removed ODF highlight reads back as
nullopt since #1089, so the test expects that again and passes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxyTMutqSUJRGfxA8CyzMc
andiwand added a commit that referenced this pull request Oct 6, 2026
* test: strengthen round trips and consolidate HTML assertions

* test: keep deducing-this lambdas and the cleared highlight contract

The library already uses explicit object parameters, and every CI
compiler builds them, so the recursive test lambdas keep `this auto`
instead of passing themselves. A removed ODF highlight reads back as
nullopt since #1089, so the test expects that again and passes.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
andiwand added a commit that referenced this pull request Oct 6, 2026
…arts

A stated ODF transparent reads as no colour and clears an inherited
background since #1089, so it is not an alpha-zero colour. A codespace
range reads a whole code of its width and checks it against its bounds,
not each byte. A save writes every part an edit loaded, not only chart
parts. The changed Markdown paragraphs are wrapped at 80 columns again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MxyTMutqSUJRGfxA8CyzMc
andiwand added a commit that referenced this pull request Oct 6, 2026
* docs: align editing and PDF design notes with implementation

* docs: correct transparent backgrounds, codespace matching and saved parts

A stated ODF transparent reads as no colour and clears an inherited
background since #1089, so it is not an alpha-zero colour. A codespace
range reads a whole code of its width and checks it against its bounds,
not each byte. A save writes every part an edit loaded, not only chart
parts. The changed Markdown paragraphs are wrapped at 80 columns again.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant