Skip to content

fix: draw the inert footnote underline with a border, not text-decoration (1.2.2) - #37

Merged
jphan32 merged 1 commit into
devfrom
fix/css-text-decoration-border
Jul 28, 2026
Merged

fix: draw the inert footnote underline with a border, not text-decoration (1.2.2)#37
jphan32 merged 1 commit into
devfrom
fix/css-text-decoration-border

Conversation

@jphan32

@jphan32 jphan32 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Obsidian's 1.2.1 plugin review came back with one remaining warning:

Unexpected browser feature "text-decoration" is only partially supported by Obsidian 1.6.5 — styles.css:452, styles.css:453

Those two lines are the text-decoration-line / text-decoration-style longhands 1.2.1 introduced, on the assumption that only the multi-value shorthand was flagged. That assumption was wrong: the reviewer's CSS check maps the whole text-decoration family — shorthand and longhands alike — onto one caniuse feature that Chrome supports only partially, so no spelling of it can pass.

Fix

The inert footnote marker's dotted underline is now a border-bottom: 1px dotted currentColor with padding-bottom: 1px standing in for the underline offset. Same visual cue, out of CSS1 properties nothing has ever qualified. No behaviour change.

Recurrence prevention

The reviewer's CSS check runs on their side only — the local gate could not verify the 1.2.1 fix, which is how the same warning came back a second time. scripts/validate.mjs now fails the build on any text-decoration* declaration in styles.css, with the replacement spelled out in the failure message. Verified it trips on a planted declaration and reports the right line.

Release

Bumps to 1.2.2 in lockstep: manifest.json, versions.json ("1.2.2": "1.6.6"), CHANGELOG.md.

This branch is cut from chore/back-merge-1.2.1, so merging it also lands the pending maindev back-merge.

Gate

npm run lint · npm run build · node --check main.js · node scripts/validate.mjs — all green.

🤖 Generated with Claude Code

https://claude.ai/code/session_019Xs98arTAdcat1h9pkz7Vy

…tion

Obsidian's plugin CSS check maps the entire `text-decoration` family onto a
single caniuse feature that Chrome supports only partially, so the longhands
1.2.1 switched to warn exactly like the shorthand did. Use a dotted
`border-bottom` (plus `padding-bottom` for the offset) instead — same cue,
CSS1 properties nothing has ever qualified.

`scripts/validate.mjs` now fails on any `text-decoration*` declaration in
styles.css: the reviewer's check runs on their side only, which is how the
same warning came back a second time.

Release 1.2.2.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Xs98arTAdcat1h9pkz7Vy
@jphan32
jphan32 merged commit 4387629 into dev Jul 28, 2026
1 check passed
@jphan32
jphan32 deleted the fix/css-text-decoration-border branch July 28, 2026 12:43
@jphan32 jphan32 mentioned this pull request Jul 28, 2026
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