Skip to content

Commit b172383

Browse files
authored
fix: ensure opacity values are rounded (#134)
1 parent cf5651d commit b172383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/declarations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const parsers: {
204204
"min-height": parseSizeDeclaration,
205205
"min-inline-size": parseSizeDeclaration,
206206
"min-width": parseSizeDeclaration,
207-
"opacity": ({ value }) => value,
207+
"opacity": ({ value }) => round(value),
208208
"outline-color": parseColorDeclaration,
209209
"outline-style": parseOutlineStyle,
210210
"outline-width": parseBorderSideWidthDeclaration,

0 commit comments

Comments
 (0)