Skip to content

CSS properties order #1052

Closed
Closed
@ocoste

Description

@ocoste

When CSS is parsed, the properties order is not maintained.

Example :

$css = '.css-109zgpm-MuiButtonBase-root-MuiButton-root{
background-color:transparent;
background:#222222;
background-color:#FFFFFF;
}';

$parser = (new Parser($css))->parse();

$css = $parser->render();

Output :
.css-109zgpm-MuiButtonBase-root-MuiButton-root {
background-color: transparent;
background-color: #fff;
background: #222;
}

And so the background does not keep the same color override

How can we keep the order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions