Skip to content

Add word-spacing.#367

Merged
nicoburns merged 1 commit intoDioxusLabs:mainfrom
AustinMReppert:feature/word-spacing
Mar 6, 2026
Merged

Add word-spacing.#367
nicoburns merged 1 commit intoDioxusLabs:mainfrom
AustinMReppert:feature/word-spacing

Conversation

@AustinMReppert
Copy link
Contributor

When running with the border fix this change should ensure this test passes.

wpt/css/CSS2/borders/border-003-ref.xht

Previous:
Screenshot from 2026-03-06 00-05-46

With Change:
Screenshot from 2026-03-06 00-04-45


let word_spacing = itext_styles
.word_spacing
.resolve(Length::new(font_size))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think font_size is the right thing to resolve these against. I believe it should be "the width of the space character". But seeing as we're already doing this incorrectly for letter-spacing I'll allow it for now.

@nicoburns
Copy link
Collaborator

Thanks!

@nicoburns nicoburns merged commit f6662e2 into DioxusLabs:main Mar 6, 2026
14 checks passed
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.

2 participants