-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
The transform example code in official documentation is not working!
CSS source code
@mixin username {
display: flex;
gap: 5px;
position: relative;
text-align: start;
align-items: center;
.uname {
}
.uid {
display: flex;
font-size: .7em;
align-items: center;
opacity: .6;
position: absolute;
top: -.7em;
}
}
#live-users {
padding: 0;
position: absolute;
.user {
@apply username;
box-shadow: 0 0 100px #00000020 inset;
border-radius: var(--radius-default);
padding: 4px 10px;
}
}version 1.30.1
It causes the nested declarations to output at root level without parent! the following output is example:
#live-users .user {
text-align: start;
align-items: center;
gap: 5px;
display: flex;
position: relative;
}
.uid {
opacity: .6;
align-items: center;
font-size: .7em;
display: flex;
position: absolute;
top: -.7em;
}
#live-users .user {
border-radius: var(--radius-default);
padding: 4px 10px;
box-shadow: inset 0 0 100px #00000020;
}version 1.30.2
It causes error following error:
2025-10-10T13:17:47.296929372Z [vite:css] [lightningcss] failed to deserialize; expected an object-like struct named Specifier, found ()
Expected output
I expect to get the following output:
#live-users .user {
text-align: start;
align-items: center;
gap: 5px;
display: flex;
position: relative;
border-radius: var(--radius-default);
padding: 4px 10px;
box-shadow: inset 0 0 100px #00000020;
}
#live-users .user .uid {
opacity: .6;
align-items: center;
font-size: .7em;
display: flex;
position: absolute;
top: -.7em;
}Metadata
Metadata
Assignees
Labels
No labels