Jon Pearse on Nostr: CSS folk: is there an easy way in CSS to easily invert a clip-path when using a ...
CSS folk: is there an easy way in CSS to easily invert a clip-path when using a shape?
`clip-path: circle()` is a great starting point, but I want to show the content *outside* the circle rather than inside. Feels like this should be fairly trivial, but I can’t find anything in the spec to do it. Am I missing something?
#help #css
Published at
2024-06-18 12:13:53Event JSON
{
"id": "32f02d75d734f6f4b2939ebb4b9565a3b0b27ef815334e9706af693464a3ca3a",
"pubkey": "0233cf0039153cb629bdd71ca845df0980c2ac6d18755bb7e9db59bddf6d6aae",
"created_at": 1718712833,
"kind": 1,
"tags": [
[
"t",
"help"
],
[
"t",
"css"
],
[
"proxy",
"https://front-end.social/users/jonpearse/statuses/112637564228609037",
"activitypub"
]
],
"content": "CSS folk: is there an easy way in CSS to easily invert a clip-path when using a shape?\n\n`clip-path: circle()` is a great starting point, but I want to show the content *outside* the circle rather than inside. Feels like this should be fairly trivial, but I can’t find anything in the spec to do it. Am I missing something?\n\n#help #css",
"sig": "1416f738ee59e6c63f2ba319ccccddc767095184641a512aef727869b679158eabee4cb0932debabf0d613fe7850980e36938ad14825aca4c5644062e4f31af7"
}