-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-shapes][css-masking] shape-outside:auto #2180
Comments
Anyone? |
I definitely like the idea of having ways to avoid repeating values in
That last one is something I've often wanted, for Of course, defining layout based on the content image would require the image or other element content to be CORS-friendly, just like with image values passed directly to The |
Thanks for the reply. I would be happy with your values instead of ‘auto’, too. Note that I was imagining |
I’d like to propose a new
auto
value forshape-outside
. How it would work, when you haveshape-outside:auto
:clip path
has a valid value that is notnone
, then that clipping path is used to define the float area shape, as if it was a polygon that exactly coincided with the path shape and position of the clipping path.mask-image
and/ormask-border-source
has a valid value that is notnone
, then the resulting alpha channel representing the, after all compositing done, is used as if it was the alpha channel of an<image>
value forshape-inside
.<image>
forshape-inside
.In this way, paths and/or images used for clipping and/or masking do not need to be repeated in the CSS in order to also be used for the float area shape. There is also less chance for error if the path or image values need to be edited. A background or internal content makes a clipped/masked shape visible, and
shape-outside:auto
lets in-line content flow around it.shape-image-threshold
andshape-margin
would work as normal to refine how that happens.The text was updated successfully, but these errors were encountered: