8000 Selector ':nth-last-child(1 of selector) ' is broken · Issue #1280 · clean-css/clean-css · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Selector ':nth-last-child(1 of selector) ' is broken #1280
Open
@miherlosev

Description

@miherlosev

Example to reproduce:

var CleanCSS = require('clean-css');
const fs = require('fs');

var input = '.dxbl-pivot > table > thead > tr.dxbl-pivot-area-row > th:nth-last-child(1 of .dxbl-pivot-area-row-field) {' + 
'  border-right-width: var(--dxbl-pivot-border-width);' +
'}';
var options = { /* options */ };
var output = new CleanCSS(options).minify(input);

fs.writeFileSync('output.css', output.styles);

The output is

.dxbl-pivot>table>thead>tr.dxbl-pivot-area-row>th:nth-last-child(1of.dxbl-pivot-area-row-field){border-right-width:var(--dxbl-pivot-border-width)}

Correct output

.dxbl-pivot>table>thead>tr.dxbl-pivot-area-row>th:nth-last-child(1 of.dxbl-pivot-area-row-field){border-right-width:var(--dxbl-pivot-border-width)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0