Closed Bug 2079733 Opened 1 month ago Closed 1 month ago

layout.css.always_underline_links overrides existing text-decoration

Categories

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

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: saschanaz, Assigned: emilio)

References

Details

Attachments

(1 external file)

Any existing non-underline properties like text-decoration: line-through is overridden by the pref, which can negatively affect site usability e.g. in Bugzilla.

Not sure this is easily fixable, as fixing it in normal CSS would require a separate div that adds the property.

Perhaps !important can go away to mitigate the issue?

Yeah this is sorta working-as-expected. Removing !important would totally break the feature.

The only reasonable fix I can think of would be moving the feature to C++ or Rust. Probably the easiest way would be something like StyleAdjuster::adjust_for_link_underlines or so?

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → emilio
Attachment #9656096 - Attachment description: WIP: Bug 2079733 - Move always_underline_links to StyleAdjuster. r=#style → Bug 2079733 - Move always_underline_links to StyleAdjuster. r=#style
Status: NEW → ASSIGNED
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/52d552093da4 https://hg.mozilla.org/integration/autoland/rev/9f8cbc5276e0 Revert "Bug 2079733 - Move always_underline_links to StyleAdjuster. r=layout-reviewers,jfkthame" for causing failures complaining about testAlwaysUnderlineLinks.
Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: