Closed Bug 1968431 Opened 10 months ago Closed 10 months ago

Introduce infrastructure to re-cascade implicitly inherited zoom-dependent properties if needed.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

This is infrastructure for a more generic version of bug 1911195. It
doesn't fix everything because:

  • We still have an if is_unset { return; } in cascade.rs which we need
    to deal with. That means that we don't deal with explicit inherit.
    Note that was the case with the other bug afaict.

  • It still doesn't automatically derive the length dependency, relying
    on a list in data.py.

The general approach is basically taking the inherited computed value
from the parent, but instead of just copying it blindly we re-compute it
with the specified zoom. This is handled only in cascade.rs, via
overriding the effective_zoom (arguably a bit hacky, but does the
trick).

I think in general it's a much cleaner approach, and fairly easy to
extend to explicit inheritance and non-inherited properties (for things
like e.g. width: inherit we need to do the same).

Blocks: 1887627
Blocks: 1968552
Blocks: 1968566
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d233e5e360ab Introduce infrastructure to re-cascade implicitly inherited zoom-dependent properties if needed. r=jfkthame
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: