W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: clip-path: basic shapes and borders

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 12 Dec 2014 12:29:19 +0000
To: Karen Menezes <karen.menezes@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <DFB6888A-483C-469A-8DB8-F25E87A96333@adobe.com>

On Dec 12, 2014, at 7:25 AM, Karen Menezes <karen.menezes@gmail.com> wrote:

> Hi! 
> In my current experiments with clip-path using basic shapes in CSS (not SVG), borders and outlines are also cut off, as mentioned here: http://www.w3.org/TR/css-masking-1/#clipping-paths

Yes, all drawing operations belonging to the element get clipped, this includes outlines and borders.

> Would there be any way to maintain a border on an element that is clipped, or set a border on a clipped element?

So you want to clip the content of the element but it's outline and border should not be affected? This is not possible with the clip-path or mask property. At least not when all of these apply to the same element.


> Karen
Received on Friday, 12 December 2014 12:29:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC