css-triggers
css-triggers copied to clipboard
Mask-*, Clip-*
The mask-* and clip-path properties seem to be missing from the list.
Any plans to add these in the near future? I came looking for mask :D
This would be useful. Does anybody know if clip path cause paint or layout? I would be surprised if it causes layout but does it cause paint? The old Clip property did so should I assume this does?
It does cause repaints, tested clip-path with two values of two rectangular shapes in a polygon(…) in Chrome Canary with CSS Transition & and also CSS Animation.
I tested with transition/animation to see if a faster rendering path / off-thread / hardware acceleration would kick in, like it does for filter: blur(…).
(Yep, blurring is hardware accelerated / performant ikel transform, blurring is basically a lot more performant than animating clip-path)