- Fix not

Took 9 minutes
This commit is contained in:
2022-03-24 09:24:10 +01:00
parent 780dd0782a
commit 1e37ac07ba
5 changed files with 9 additions and 18 deletions

View File

@@ -222,7 +222,7 @@ abstract class CssGenerator {
if (css.isNotBlank()) {
val builder = StringBuilder()
check (allowCommaInSelector || !name.contains(',')) {
check (allowCommaInSelector || (name.indexOf(',') == -1)) {
"Comma is not allowed in selector (option is set in generateCss call)"
}
@@ -862,6 +862,10 @@ open class InlineStyle : CssGenerator() {
props["content"] = prp(content)
}
fun content(content: String) {
props["content"] = prp(content)
}
fun counterIncrement(increment: String) {
props["counter-increment"] = prp(increment)
}
@@ -1610,6 +1614,8 @@ open class Style : InlineStyle() {
addStyle("::${selector.description()}", style)
}
fun not(name: DescriptionProvider): DescriptionProvider = ValueDescriptionProvider(":not(${name.description()})")
@Deprecated("Use select(not(...)) instead.")
fun not(selector: DescriptionProvider, style: Css) {
addStyle(":not(${selector.description()})", style)
}