79808871

Date: 2025-11-04 11:59:21
Score: 0.5
Natty:
Report link

You can't style the scrollbar of a pseudo-element because pseudo-elements (like ::before and ::after) can't be independently scrollable. Scrollbars belong to 'real' DOM elements with overflow set to auto or scroll. If your pseudo-element overflows the parent, the scrollbar is actually on the parent. To style it you need to target the scrollable container (parent), not the pseudo-element.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ninadepina