Re: [svgwg] 'pathLength' interaction with <textPath> with a percentage 'startOffset'

> But to me, the guiding principle should be: if the author set pathLength="0", they are expecting the path to behave as a zero-length path segment. (Which wouldn't fit any text on it at all.)

Can our guiding principle be that pathLength="0" means pathLength is epsilon, an arbitrarily small positive number. Then pathLength simply cancels out when the offset is a percentage: `offset-percentage / 100 * epsilon * (computed-path-length / epsilon)`.

This principle gives the existing meaning when startOffset is a number instead of a percentage: `zero * (computed-path-length / epsilon)` remains zero, and `(any value greater than zero) * (computed-path-length / epsilon)` becomes arbitrarily large, i.e. +Infinity.


-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/383#issuecomment-364283106 using your GitHub account

Received on Thursday, 8 February 2018 23:24:02 UTC