Previously, we always returned the state flags of the original widget and did not consider the siblings' pseudoclasses. Testcase is attached.