Test: Resolve `calc(100% / 6)`
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css
- Domain
- testing
Research direction
Start in the calc/00xx test area and inspect nearby cases to follow the repository's fixture format. Add the calc(100% / 6) case with the shown precision variants and expected minified output, then run the relevant test command for the calc fixtures to verify the result.
Written by the indexing model from the issue text.
Description
calc/00xx
# Resolve `calc(100% / 6)`
Replace the calculation with the result to reduce character count. For accuracy
you must retain at least 4 decimal points of precision, but no more than 7 as
that would be the same length as retaining the calculation. The last digit must
be a rounded `7`.
.a {
width: calc(100% / 6);
}
.a{width:16.6667%}
.a{width:16.66667%}
.a{width:16.666667%}
.a{width:16.6666667%}
| Minifier | Version | 🏆 | Size | Output |
|---|---|---|---|---|
| lightning | v1.33.0 | 🏆 | 18 | .a{width:16.6667%} |
| csslop | v0.0.39 | 22 | .a{width:calc(100%/6)} |
|
| csskit | v0.0.32 | 22 | .a{width:calc(100%/6)} |
|
| csso | v5.0.5 | 22 | .a{width:calc(100%/6)} |
|
| cleancss | v5.3.3 | 24 | .a{width:calc(100% / 6)} |
|
| esbuild | v0.28.2 | 24 | .a{width:calc(100% / 6)} |
|
| sass | v1.104.1 | 24 | .a{width:16.6666666667%} |
|
| cssnano | v9.0.5 | 25 | .a{width:calc(16.66667%)} |
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 3
- Avg merge
- 5h 4m
- Merged PRs (30d)
- 53
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keithamus/css-minify-tests
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
keithamus/css-minify-tests#269 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
keithamus/css-minify-tests#268 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
keithamus/css-minify-tests#266 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
keithamus/css-minify-tests#255 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
keithamus/css-minify-tests#99 · 1 comment ·
All issues in keithamus/css-minify-tests
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·