giuseppeg / giuseppeg/postcss-pseudo-classes

Preserve css pseudo class functions

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
29
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Hello,

I would like to preserve css pseudo class functions like `:host()` but currently all pseudo class functions are escaped.

Example:

```css
:host(.selector) {...}

:host(:active) {...}
```

is resolved to:

```css
:host(.selector),
// `host` is in blacklist: last parenthesis is escaped
:host(.selector\) {...}
// `host` not in blacklist:
./:host\(.selector\) {...}

:host(:active),
.\:host\(.\:active\) {...}
```

I need the following output:
```css
// function remains unchanged
:host(.selector) {...}

:host(:active),
// function remains unchanged, only pseudo state is resolved
:host(.\:active) {...}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.