giuseppeg / giuseppeg/styled-jsx-plugin-sass

min/max doesn't work with safe-area-inset-bottom

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
121
Forks
24
PR merge metrics
No merged PRs in 30d

Description

I am getting a error when using `safe-area-inset-bottom` together with `min` or `max` like this:

```css
padding-bottom: min(50px, env(safe-area-inset-bottom));
```

Error:
"env(safe-area-inset-bottom)" is not a number for `min'

This is valid css and should work out of the box.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported CSS snippet in styled-jsx-plugin-sass and trace how Sass handles min(), max(), and env(safe-area-inset-bottom). Done means the valid CSS compiles without the reported non-number error; add or update a regression test if the project’s existing test setup supports one.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sass
Domain
frontend, tooling
Issue type
Bug
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.