Paint bgcolor of inline box

In case that inline element has `background-color`, bgcolor doesn't work.
Fix the error and add a test case.