Closed Bug 1942329 Opened 1 year ago Closed 11 months ago

New wpt failures in /css/css-values/rlh-on-root-lengths.html

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: wpt-sync, Assigned: developer.ruhan, Mentored)

References

Details

(Keywords: good-next-bug, Whiteboard: [wpt])

Attachments

(1 file)

Syncing wpt PR 50136 found new untriaged test failures in CI

Tests Affected

New Tests That Don't Pass

CI Results

Gecko CI (Treeherder)
GitHub PR Head

Notes

These updates will be on mozilla-central once bug 1942313 lands.

Note: this bug is for tracking fixing the issues and is not
owned by the wpt sync bot.

This bug is linked to the relevant tests by an annotation in
https://github.com/web-platform-tests/wpt-metadata. These annotations
can be edited using the wpt interop dashboard
https://jgraham.github.io/wptdash/

If this bug is split into multiple bugs, please also update the
annotations, otherwise we are unable to track which wpt issues are
already triaged. Resolving as duplicate or closing this issue should
be cause the bot to automatically update or remove the annotation.

I think the spec changed here, but here is the place to tweak: https://searchfox.org/mozilla-central/rev/ef34dd879ef8d4a0f3d68d371d23caebcd8fef65/servo/components/style/values/specified/length.rs#410

Might be a good second bug?

Mentor: emilio
Severity: -- → S3
Depends on: 1310170
Keywords: good-next-bug
Priority: -- → P3

Hi, can I take this bug?

From my understanding the problem is that when computing rlh on :root, we are using the default line‑height instead of the :root element’s actual line‑height, which is causing the failed tests. Does that sound right or is there something I'm missing?

Flags: needinfo?(emilio)

Yes that sounds right, and please go ahead!

Flags: needinfo?(emilio)
Assignee: nobody → developer.ruhan
Status: NEW → ASSIGNED

Hi, I wanted to check in regarding the changes I submitted. I changed the code to call builder.calc_line_height with the line_height_base when is_root_element is true, instead of relying on the default style’s font. I tested the patch locally on my Mac. The wpt test failed on the original code but now passes after my changes. However, I’m not sure how to run the test across different devices or platforms. Let me know what you think and if there is anything else I can do for this bug.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by bhearsum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4774563617f Resolve rlh units using the computed line_height_base on the root element instead of default style. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: