WICG / canvas-formatted-text

Other
80 stars 17 forks source link

Add an example of using `shape-inside` to handle shape-based line wrapping #42

Open travisleithead opened 2 years ago

travisleithead commented 2 years ago

An example from the original explainer shows how lines could be made to wrap around a shape (box, logically floated left). This should be very possible with CSS Shapes Level 2 (shape-inside property). Though support is not great at the moment, an example of how this should work would be ideal to cover this common use case.