Ever want to mask something out of an element, but not cut out blur or box-shadow or a pseudo outside the element's border box?
Well, subtract whatever you want masked out from a fully opaque layer with `mask-clip` set to `no-clip`!
mask:
conic-gradient(red 0 0) no-clip subtract,
var(--masked-area)
@codepen demo: https://codepen.io/thebabydino/pen/MYggKre
#CSS #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.