Export layout/reftests/radicalbar*.html to WPT
Categories
(Core :: MathML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: fredw, Assigned: fredw)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Extracted from bug 1847280.
I tried converting layout/reftests/radicalbar*.html to WPT, replacing
reftest-zoom with SpecialPowers.setFullZoom. However, that didn't work
because we cannot reset the zoom level after the screenshot and that
affects subsequent tests.
I also noticed that reftest-zoom=".2" is actually clamped to
zoom.minPercent so the radicalbar-*d.html are the same as
radicalbar-*c.html. That's not the case with
SpecialPowers.setFullZoom, and I realized that with the patch
bug 1011020 is actually still present for a 20% zoom level.
I also did verify that reverting the changes to
nsDisplayMathMLBar::Paint make radicalbar-*c.html fail. Maybe
it makes sense to restrict to values not less than zoom.minPercent
instead.
I also considered converting to a
testharness instead relying on SpecialPowers.snapshotWindowWithOptions
to check if the bar is visible. That would have made the test more
readable but the buffer returned does not seem to be affected by zoom level so that does not allow to reproduce bug 1011020.
See my attempts in attachment 9347517 [details] [diff] [review].
I guess the solution would be to support reftest-zoom in WPT tests or some version of the CSS zoom property.
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
Attached is a patch based on the CSS zoom property. Our current implementation does not seem to scale down the MathML radicals much (and does not allow to reproduce bug 1011020 when reverting the fix) so let's come back to this later.
Comment 3•1 year ago
|
||
CSS zoom is not equivalent to browser zoom, so it's not an option unfortunately.
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
OK, I uploaded a patch to update the comment. Let's land it and close as WONTFIX.
Comment 7•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•11 months ago
|
Assignee | ||
Updated•11 months ago
|
Description
•