csso icon indicating copy to clipboard operation
csso copied to clipboard

Duplicate content property removed

Open JDrizzy opened this issue 2 years ago • 0 comments

The content property allows for an alternative text value which is not supported in Firefox and Safari. A library that I'm using works around this issue by including a content value twice. This is to ensure a sort icon is always displayed regardless of browser support.

Using the latest version of CSSO (5.0.5) breaks this icon display for all browsers since the duplicate content value is removed.

Input

.test:before {
  content: "▲";
  content: "▲"/"";
}

Output

.test:before{content:"▲"/""}

Expected

.test:before{content:"▲";content:"▲"/""}

JDrizzy avatar Sep 26 '23 23:09 JDrizzy