Implement text-autospace:replace behavior
Categories
(Core :: Layout: Block and Inline, 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.)
Updated•1 year ago
|
Comment 1•10 months ago
|
||
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?
| Reporter | ||
Comment 2•10 months ago
|
||
(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.
Description
•