Closed Bug 1850661 Opened 1 year ago Closed 1 year ago

Export layout/reftests/radicalbar*.html to WPT

Categories

(Core :: MathML, task)

task

Tracking

()

RESOLVED WONTFIX
124 Branch
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.

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.

CSS zoom is not equivalent to browser zoom, so it's not an option unfortunately.

Assignee: nobody → fwang
Status: NEW → ASSIGNED

OK, I uploaded a patch to update the comment. Let's land it and close as WONTFIX.

QA Whiteboard: leave-open,
Pushed by fwang@igalia.com: https://hg.mozilla.org/integration/autoland/rev/b54168d5d86c Update comment regarding radicalbar*.html reftests. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Resolution: FIXED → WONTFIX
Attachment #9356320 - Attachment is obsolete: true
QA Whiteboard: leave-open,
Blocks: 1883840
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: