`not(":first-child") { ... }` can I use some keywo...
# fritz2
p
not(":first-child") { ... }
can I use some keywoprd instead of string?
c
What do you mean by keyword?
p
not(firstChild) { ... }
c
No, that is currently not possible. Our CSS abstraction does not try to build up some sort of AST, which would be needed in order to evaluate the inner parameter first and then integrate the result in the outer
not
. Instead we simply add the created CSS of one block directly into the
StringBuilder
of one class. It might be possible though to support those special cases by lifting up all selector functions, which could support nesting to open up a sub-context (see
Background
and
BackgroundContext
as examples), which then offers the functions to nest.
👌 1