Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

# v1.6.1

- [x] fix bugs when computing math functions.
- [x] reduce array mutations
- [x] supporting additional shorthands: scroll-timeline, scroll-padding, scroll-margin.
- [x] do not minify transform function when the absolute angle is greater or equals to 360deg

```css

a:hover {

transform: rotate(calc(2.5*pi * 1rad)) }
.now {
transform: translate(100px, 100px) rotate(1215deg) skewX(10deg);
}
```
should be minified to
```css
a:hover {
transform: rotate(450deg)
}
.now {
transform: translate(100px,100px)rotate(1215deg)skew(10deg)
}
```

# v1.6.0

- [x] added support for math function `tan()`.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ Try it [online](https://tbela99.github.io/css-parser/playground/)
- [ ] place-content
- [ ] place-items
- [ ] place-self
- [ ] scroll-margin
- [ ] scroll-padding
- [ ] scroll-timeline
- [x] scroll-margin
- [x] scroll-padding
- [x] scroll-timeline
- [x] text-decoration
- [x] text-emphasis
- [x] transition
Expand Down
6 changes: 3 additions & 3 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"all": "npm run sizes && npm run bench && npm run report"
},
"dependencies": {
"@tbela99/css-parser": "^1.4.11",
"@tbela99/css-parser2": "github:tbela99/css-parser#52223b9",
"@tbela99/css-parser": "^1.6.0",
"@tbela99/css-parser2": "github:tbela99/css-parser#20f608b",
"clean-css": "^5.3.3",
"css-tree": "^3.2.1",
"cssnano": "^8.0.6",
"cssnano": "^9.0.2",
"csso": "^5.0.5",
"esbuild": "^0.28.2",
"lightningcss": "^1.33.0",
Expand Down
Loading