You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict";
const postcss = require("postcss");
const css = ":root { --foo: { color: red };; --bar: { color: blue }; --bar-foo: { color: red }; }";
console.log(postcss.parse(css).toString());
Output (no extra semicolon after --foo):
:root { --foo: { color: red }; --bar: { color: blue }; --bar-foo: { color: red }; }
Seems (:root { --foo: { color: red };; --bar: { color: blue }; --bar-foo: { color: red }; }) --bar node doesn't contain this extra semicolon in raws.before:
The text was updated successfully, but these errors were encountered:
alexander-akait
changed the title
Parse and stringify custom properties sets lose semicolon
Parse and stringify lose semicolon in custom property set
Jun 29, 2017
Example:
Output (no extra semicolon after
--foo
):Seems (
:root { --foo: { color: red };; --bar: { color: blue }; --bar-foo: { color: red }; }
)--bar
node doesn't contain this extra semicolon inraws.before
:Based on stylelint/stylelint#2561
The text was updated successfully, but these errors were encountered: