@tbela99/css-parser 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +3 -3
- package/dist/index-umd-web.js +425 -230
- package/dist/index.cjs +425 -230
- package/dist/index.d.ts +1 -1
- package/dist/lib/ast/features/transform.js +1 -1
- package/dist/lib/ast/math/expression.js +19 -4
- package/dist/lib/ast/minify.js +84 -10
- package/dist/lib/ast/transform/compute.js +28 -55
- package/dist/lib/ast/transform/minify.js +1 -1
- package/dist/{config.json.js → lib/data/properties.json.js} +106 -0
- package/dist/lib/{validation/config.json.js → data/validation.json.js} +11 -8
- package/dist/lib/parser/parse.js +6 -5
- package/dist/lib/parser/tokenize.js +40 -41
- package/dist/lib/parser/utils/config.js +1 -1
- package/dist/lib/parser/utils/declaration.js +11 -3
- package/dist/lib/parser/utils/selector.js +98 -88
- package/dist/lib/renderer/render.js +2 -2
- package/dist/lib/renderer/sourcemap/lib/codec.js +3 -3
- package/dist/lib/syntax/color/cmyk.js +4 -3
- package/dist/lib/syntax/color/srgb.js +4 -3
- package/dist/lib/syntax/constants.js +1 -1
- package/dist/lib/validation/config.js +1 -1
- package/dist/lib/validation/parser/parse.js +7 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# v1.6.1
|
|
4
|
+
|
|
5
|
+
- [x] fix bugs when computing math functions.
|
|
6
|
+
- [x] reduce array mutations
|
|
7
|
+
- [x] supporting additional shorthands: scroll-timeline, scroll-padding, scroll-margin.
|
|
8
|
+
- [x] do not minify transform function when the absolute angle is greater or equals to 360deg
|
|
9
|
+
|
|
10
|
+
```css
|
|
11
|
+
|
|
12
|
+
a:hover {
|
|
13
|
+
|
|
14
|
+
transform: rotate(calc(2.5*pi * 1rad)) }
|
|
15
|
+
.now {
|
|
16
|
+
transform: translate(100px, 100px) rotate(1215deg) skewX(10deg);
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
should be minified to
|
|
20
|
+
```css
|
|
21
|
+
a:hover {
|
|
22
|
+
transform: rotate(450deg)
|
|
23
|
+
}
|
|
24
|
+
.now {
|
|
25
|
+
transform: translate(100px,100px)rotate(1215deg)skew(10deg)
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
3
29
|
# v1.6.0
|
|
4
30
|
|
|
5
31
|
- [x] added support for math function `tan()`.
|
package/README.md
CHANGED
|
@@ -185,9 +185,9 @@ Try it [online](https://tbela99.github.io/css-parser/playground/)
|
|
|
185
185
|
- [ ] place-content
|
|
186
186
|
- [ ] place-items
|
|
187
187
|
- [ ] place-self
|
|
188
|
-
- [
|
|
189
|
-
- [
|
|
190
|
-
- [
|
|
188
|
+
- [x] scroll-margin
|
|
189
|
+
- [x] scroll-padding
|
|
190
|
+
- [x] scroll-timeline
|
|
191
191
|
- [x] text-decoration
|
|
192
192
|
- [x] text-emphasis
|
|
193
193
|
- [x] transition
|