Created attachment 330012 [details]
See the testcase. The square should be green, while it renders red.
Changing the ":matches(whatever, body #test)" to either ":matches(body #test)" or ":matches(whatever, #test)" makes the testcase works as expected.
*** This bug has been marked as a duplicate of bug 206654 ***