cssbeautify icon indicating copy to clipboard operation
cssbeautify copied to clipboard

@font-face fails to format correctly.

Open tomgenoni opened this issue 10 years ago • 1 comments

Given the string b{font-family:"a";src:url("b";)}@font-face{font-family:"a";src:url("b";)}

Expected output is:

b {
    font-family: "a";
    src: url("b";);
}

@font-face {
    font-family:"a";
    src:url("b");
}

Actual output:

b {
    font-family: "a";
    src: url("b";);
}

@font-face {
    font-family:"a";src:url("b");
}

The src property should wrap. Oddly it does work if @font-face is first.

tomgenoni avatar Mar 04 '14 06:03 tomgenoni

Let's take a look at the code to see what's happening here, 'cause I'm getting that odd output too...

Telematica avatar May 11 '14 04:05 Telematica