Created attachment 276904 [details] testcase This was discussed in bug 153208. In the attached testcase: 1) green background is used for arabic and latin text. 2) red background is used for arabic and latin text, using "-webkit-line-box-contain: glyphs replaced" 3) blue background is used for arabic and latin text in a MathML <mi> element (which currently uses "-webkit-line-box-contain: glyphs replaced", see bug 151592) This works correctly for latin, but the background of Arabic text does not appear because the height of the calculated bounding box is incorrect. After bug 153208, MathML uses this exact bounding box for the layout and so Arabic text no longer appears. I was able to reproduce this problem on GTK but this works correctly on Mac, so I guess it is specific to the Linux graphics backend.