Re: [css-houdini-drafts] [css-layout-api] String based inline layout API (#990)

Just found this! I can imagine this being awesome for Workers as well (with OffscreenCanvas).

Separately, my team has been working with some customers in one of the "[growing number of use cases](https://github.com/w3c/css-houdini-drafts/issues/990#issue-617935027:~:text=growing%20number%20of%20use%20cases)" (Canvas 2D in fact) to enable this capability, and we just published our ideas as an explainer today: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Canvas/FormattedText.md

Coincidentally, our explainer and the strawperson sample above are remarkably similar :)

We would love you folks to read it and let us know what you think. Note: it's tailored to work specifically for Canvas, since that seems to be the one place where you can't already leverage the power of CSS/HTML. I'm not opposed to having two separate ways of doing this (one in a LayoutWorklet, one exposed more generally), but we should probably work together on the more general one. Also, if there are important non-canvas use-cases to consider I would be interested in hearing them.

@sushraja-msft

-- 
GitHub Notification of comment by travisleithead
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/990#issuecomment-659050808 using your GitHub account

Received on Wednesday, 15 July 2020 22:39:05 UTC