You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you declare a raw CSS selector containing parentheses, such as nth-child(even), without the leading colon, website output will be broken (I have no better word to describe this). Omitting the colon on selectors without parens (hover) doesn't lead to breakages.
Very easily reproducible:
kobweb create app
Replace the HomeGridCellStyle in Index.kt with the following block.
Start the dev server and observe the differences in website behavior when adding and removing the colon in nth-child
val HomeGridCellStyle = CssStyle {
base {
Modifier
.backgroundColor(GridCellColorVar.value())
.boxShadow(blurRadius = 0.6.cssRem, color = GridCellColorVar.value())
.borderRadius(1.cssRem)
}
cssRule("nth-child(even)") {
Modifier.backgroundColor(org.jetbrains.compose.web.css.Color.chartreuse)
}
cssRule(":hover") {
Modifier.backgroundColor(org.jetbrains.compose.web.css.Color.crimson)
}
}
Version: 0.19.0
The text was updated successfully, but these errors were encountered:
If you declare a raw CSS selector containing parentheses, such as
nth-child(even)
, without the leading colon, website output will be broken (I have no better word to describe this). Omitting the colon on selectors without parens (hover
) doesn't lead to breakages.Very easily reproducible:
kobweb create app
HomeGridCellStyle
inIndex.kt
with the following block.nth-child
Version:
0.19.0
The text was updated successfully, but these errors were encountered: