Replace SVG mapped-attribute rules without selector matching
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: mayankleoboy1, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(2 external files)
| Assignee | ||
Comment 1•19 days ago
|
||
Schedule a normal-traversal replacement hint for SVG mapped attributes,
leaving HTML mapped attributes on the existing full-restyle path. Normal
selector invalidation can still request matching independently.
Replace the entire presentational-hint segment so SVG links keep their
additional link-color hints in both visited modes. When hint identities
are unchanged, reuse the rule path without allocating temporary storage,
cloning rule-node references, or doing rule-tree lookups, and still
recascade the declarations that may have changed in place. Rebuild the
higher-priority path only when the hint list changes. Preserve adjacent
hint deduplication and the display:none animation-traversal guard.
Keep the existing inline-style and animation rule-replacement fast paths.
For non-link SVG elements whose visited and unvisited rule paths are
identical, perform replacements once and reuse the resulting path for
visited cascading. Leave unchanged paths alone without extra refcount
operations. SVG links still replace their visited-dependent hints
separately.
Updated•19 days ago
|
| Assignee | ||
Comment 2•19 days ago
|
||
try: https://treeherder.mozilla.org/jobs?repo=try&revision=f20f494f9ea9ca585ccf6d18a9e3437628441d4a
sp3: https://perf.compare/compare-results?baseRev=56b72bcb16530ccf48ee911e709b3651ad8d0c5f&baseRepo=try&newRev=f614a4a7f8ebe8580d30284275b6239b2b762d62&newRepo=try&framework=1&framework=13&sort=median-diff%7Cdesc&initialized=1
Updated•18 days ago
|
Updated•17 days ago
|
| Assignee | ||
Updated•17 days ago
|
Comment 3•7 days ago
|
||
Rather than introducing pres hint declarations, just map them to the
system colors that we use in the UA sheet. This is a lot simpler.
https://hg.mozilla.org/mozilla-central/rev/d2d78009d04d
https://hg.mozilla.org/mozilla-central/rev/2e7d339fc6fd
Comment 7•14 hours ago
|
||
ni? to try to spec + add tests for comment 5 as per the discussion in the WHATNOT meeting.
Description
•