Web Platform Team Blog

Adobe

decor

Making the web awesome

Finding the First Layout Location Within a Polygonal CSS Exclusion Shape


Hans Muller has been investigating how to layout inline text within or around a CSS Exclusion Shape. Previously, he wrote about an algorithm that would help detecting the text rectangle that would intersect a CSS Exclusion shape outside or within. Recently he’s been working to solve a related problem, finding the initial location to begin laying out text. It turns out, it’s not as simple as beginning from the top of the exclusion shape.

Read more on his blog to find out about the algorithm to detect first layout location within a polygonal CSS exclusion shape and play with a JavaScript implementation of that.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>