Firefox uses a system called layer compositing where we divided the page itself into three different layers: one is for the video, and we do a hardware acceleration for the video, and then we have the text itself, where we use direct 3D for rendering the text, and then we also have on the right for rendering the image itself. 