Open Bug 1980111 Opened 1 year ago Updated 10 months ago

Implement text-autospace:replace behavior

Categories

(Core :: Layout: Block and Inline, enhancement)

enhancement

Tracking

()

People

(Reporter: jfkthame, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [jp-reserve])

The replace option for text-autospace (in contrast to the default insert behavior) will remove a "normal" space character in contexts where auto-spacing can apply, and replace it with the appropriately-sized space. This will probably mean handling such cases during the whitespace-compression stage of text preparation.

(Another possibility might be to just "collapse" the space to zero width, rather than skipping it entirely during whitespace compression, but this might be more problematic as things like justification would still see it as present.)

Whiteboard: [jp-reserve]

The spec says "additionally, the space (U+0020) is removed". I think this means only the spacing, not the character (like selection and search), right?

Flags: needinfo?(jfkthame)

(In reply to overflowcat from comment #1)

The spec says "additionally, the space (U+0020) is removed". I think this means only the spacing, not the character (like selection and search), right?

That would be my understanding, yes. Selection/search/etc operates on the underlying text in the DOM, which is not modified; this is a layout/rendering-time adjustment, similar to things like kerning.

Flags: needinfo?(jfkthame)
You need to log in before you can comment on or make changes to this bug.