Khan / Khan/aphrodite

Add support for :vertical and :horizontal pseudo classes

Open
#286 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
187
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am trying to hide vertical scrollbar on Chrome with the following CSS rule `::-webkit-scrollbar:horizontal` according to [this documentation](https://webkit.org/blog/363/styling-scrollbars/).
Thus, I wrote an Aphrodite rule like this:
```javascript
rule: {
'::-webkit-scrollbar': {
':vertical': {
display: 'none',
}
}
}
```

But it does not work, if i just put the rule on '::-webkit-scrollbar', it works well on both vertical and horizontal scrollbars but the :vertical pseudo class seems to break.

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by tracing how Aphrodite handles nested pseudo-selectors and compare its generated CSS with the issue's :vertical and :horizontal examples; done means both pseudo classes produce working scrollbar selectors.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.