stylus icon indicating copy to clipboard operation
stylus copied to clipboard

[Bug] Extra space is added in the wrong location during formatting.

Open QIUZAIYOU opened this issue 2 years ago • 1 comments

Bug Report

Bug Description

In UserCSS, selector as .bili-video-card:has(.bili-video-card__wrap>a:not([href*="http://www.bilibili.com"])) ,when formatting is applied, an extra space is incorrectly added after “a:”, resulting in a formatting error.

Screenshots

Quicker_20240118_092117

CSS Code

.bili-video-card:has(.bili-video-card__wrap>a: not([href*="www.bilibili.com"])) {display: none!important;}

System Information

  • OS: Windows 10
  • Browser: Edge 118.0.2088.69(64)
  • Stylus Version: 1.5.43

Additional Context

微信截图_20240118094535

QIUZAIYOU avatar Jan 18 '24 01:01 QIUZAIYOU

Our beautifier is primitive and bugged. Someday we'll rewrite it completely or switch to a different one.

tophf avatar Jan 18 '24 01:01 tophf