+ 3

Why isn't the clip path working in this code?

https://code.sololearn.com/WKQLV0upiZSO/?ref=app

25th May 2021, 5:47 AM
The INDIAN
The INDIAN - avatar
4 odpowiedzi
+ 6
clip-path:circle(0.3% at 0 100%); Its not working because the blank space between "0.3%" and "at" and between "0" and "100%" is not a space If you print their character code using js it will show 160 but the character code of a space is 32 This maybe had occurred because you are using a virtual keyboard as you can't get the key code of keys of keyboard using js if you're using a virtual keyboard it always return 160 try removing that blank space and put an actual space between them it will work
25th May 2021, 7:12 AM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
+ 3
Here's the fix: https://code.sololearn.com/WrMqoc3QXTvD/?ref=app As Arnav Kumar [📕Schools📚] suggested, I removed the space and edited it again, and it worked. **You can change the values later
25th May 2021, 7:40 AM
‎Keshav
‎Keshav - avatar
25th May 2021, 8:13 AM
The INDIAN
The INDIAN - avatar
0
محمد
3rd Jun 2021, 4:41 PM
محمد ابراهيم محمد عبد الله صلاح الدين
محمد ابراهيم محمد عبد الله صلاح الدين - avatar