LoginSignup
1
0

【バグ?】Chromeでcolor: transparent & text-strokeの要素を選択すると消える

Last updated at Posted at 2023-05-19

color: transparent & text-strokeの要素を選択すると、
選択の薄グレーは表示されるものの、文字が消えてしまいました・・・
これを解消したい

SCSS

color: transparent;
-webkit-text-stroke: 1px black;
color: transparent;
-webkit-text-stroke: 1px black;

&::selection {
   color: black;
   background: #aad2ff;
}

デモ

See the Pen color: transparent & text-stroke ::selection Chrome bug by ituki_b (@ituki_b) on CodePen.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0