Mysterious color shadow was incorrectly painted near around the texts
Categories
(Core :: Graphics: Text, defect, P3)
Tracking
()
People
(Reporter: alwu, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 obsolete files)
I found that there are a lots of WebVTT ref tests failed [1] because some mysterious unexpected color showing around the text, it looks like a colorful shadow, but the ref files don't have such CSS property.
The completed try result is in here [2].
Comment 1•6 years ago
|
||
Looks like the tests are being rendered with grayscale antialiasing, while the reference is using cleartype (subpixel) AA.
The cleartype "color fringing" on the reference does look surprisingly strong; I wonder if it's not using the correct gamma, or something like that?
Reporter | ||
Comment 2•6 years ago
|
||
Hi, Jonathan,
Do you think if this issue is easy to get a fix? Or it's a complex issue and I should disable those tests on Windows and wait for someone to take a look for this issue?
Thank you!
Comment 3•6 years ago
|
||
Lee is more likely to know if there's an easy way to fix this, I think; I'm not sure of all the exact criteria that go into determining what kind of antialiasing will be used when the text is painted.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
As far as the text backends are concerned, whatever AA layout asks for is what they end up getting. I think maybe Matt or Markus would have a better idea of the situations where AA gets disabled or not by FLB above...
Reporter | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
It might be better if the reference file also used a <video> (or maybe a <canvas>?) to put under the text, so that the only difference between the two is the text (normal vs WebVTT).
The current case has dynamic content under the text in the test file (the video), and static under the text in ref (a white div), so we take quite different rendering paths, depending on platform and backend.
Reporter | ||
Comment 6•6 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #5)
It might be better if the reference file also used a <video> (or maybe a <canvas>?) to put under the text, so that the only difference between the two is the text (normal vs WebVTT).
The current case has dynamic content under the text in the test file (the video), and static under the text in ref (a white div), so we take quite different rendering paths, depending on platform and backend.
Good idea, using <video> in reference file makes more sense.
Reporter | ||
Comment 7•6 years ago
|
||
Take basic-ref.html
as an example [1], I made a example to put the text over the <video>
[2]. Is that what you meant?
[1] https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/basic-ref.html
[2] https://codepen.io/anon/pen/dEmLap
Comment 8•6 years ago
|
||
I'm not sure if that will work, since from the display list side, there isn't actually any video content there.
I think you need to do the same as the test variant, where you load a white mp4/webm, set the autoplay attribute, and make the test wait for the onplaying event.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 9•6 years ago
|
||
In order to use same rendering path for test and reference files, we should also use <video>
in reference files.
Reporter | ||
Comment 10•6 years ago
|
||
As we have let test and reference file using same rendering path, we can re-enable those wpt on Windows.
Reporter | ||
Comment 11•6 years ago
|
||
Hi, Matt,
This issue still happened on Win7 [1], even if we used <video>
tag for the reference files. Do you have any idea about why this issue only happen on Win7?
Thank you.
Comment 12•6 years ago
|
||
Do you need to include class="reftest-wait" and the reftest-wait.js script?
Reporter | ||
Comment 13•5 years ago
|
||
After adding class="reftest-wait"
and including reftest-wait.js
, the issue still happened [1]. It seems that we still have some rendering issue on Windows even if we use <video>
on both test and reference files.
Reporter | ||
Comment 14•5 years ago
|
||
I believe that we should still fix this bug, not working around by changing tests.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Description
•