Skip to content

Matching Firefox and Webkit styles #4

Open
@philipbordallo

Description

@philipbordallo

Currently the transformed Webkit scrollbar styles are very basic and do not match what's rendered in Firefox. Does it make sense to try and match the styles that occur in Firefox to Webkit?

  • At least with Firefox on macOS, scrollbar-width: thin renders to 11px. Currently postcss-scrollbar is translating it to .5rem, which for when the root font-size is 16px it ends up as 8px but because it's using rem it is affected by whatever that root font-size is. For example, font-size: 32px means the scrollbars would be 16px.

  • Again on macOS, Firefox gives the thumb a border-radius and some spacing that can be replicated using borders and border-radius, it's not perfect but it's doable.

Here's pen of what's possible: https://codepen.io/philipbordallo/pen/mvevry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions