If I insert a new row in a repeat and "setvalue it" it is marked as invalid. It might be something with the deferred updates, dunno.
Created attachment 216730 [details] Updated testcase Added better description, and used styling with pseudo classes instead of attributes.
Just wait long enough, and it solves itself. This works for me now :)