Re: [svgwg] Specify which attributes/properties are horizontal vs vertical vs other

> But the problem is that the `textLength` attribute can be on a container which has child elements of different writing modes.

Isn't that more of a "problem" with mixing writing-modes when working with `textLength` - i.e it's working the against the logical extent of the text. So if the block-flow direction takes a (literal) turn it easily becomes unintuitive/difficult to reason about. (With an appropriate text-orientation it probably isn't _too_ bad though...)

> The adjustment calculations are difficult enough in the case of nested elements (and I don't think any browser is currently to spec), I wouldn't want to complicate it further.

Absolute wouldn't want that, no. (I noticed that the 'horizontal' flag in the SVG2 text layout algorithm is only ever set from the `<text>` `writing-mode` though. Presumably a spec-bug.)

> And it definitely isn't useful to use `textLength` relative to width for vertical text.

And, arguably, neither is using it relative to 'other'.

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

Received on Wednesday, 16 August 2017 20:37:14 UTC