Closed Bug 1845446 Opened 2 years ago Closed 3 months ago

Support text decoration properties in highlight pseudo-elements

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: nchevobbe, Assigned: jjaschke)

References

(Blocks 4 open bugs, Regressed 1 open bug)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:450

Attachments

(1 file)

https://drafts.csswg.org/css-pseudo-4/#highlight-styling states that text-decoration and associated properties should be applied

It should help with css/css-pseudo/active-selection-014.html

Severity: -- → S3
Duplicate of this bug: 1861283

This patch adds basic support for text-decoration in selection-based pseudo elements
(::selection, ::highlight(), ::target-text).
This is still missing support for text-decorations which are over- or underflowing.

Assignee: nobody → jjaschke
Status: NEW → ASSIGNED

The attached patch implements text-decoration for selection-based pseudos. However, ironically, it doesn't make the test mentioned in comment 0 pass. I think this misses https://www.w3.org/TR/css-pseudo-4/#paired-defaults. However, since I'm focusing on ::highlight, I would implement this in a follow-up.

See Also: → 1987618
User Story: (updated)
See Also: → 1996642
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5505418e7642 https://hg.mozilla.org/integration/autoland/rev/8e2729719486 Revert "Bug 1845446 - CSS Highlight API: Implement support for `text-decoration`. r=jfkthame,emilio" for causing multiple Linux failures in Span.h.

Reverted this because it was causing multiple Linux failures in Span.h.

Flags: needinfo?(jjaschke)
Flags: needinfo?(jjaschke)
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Depends on: 1997889
Blocks: 1997889
No longer depends on: 1997889
Duplicate of this bug: 1972777
QA Whiteboard: [qa-triage-done-c147/b146]
Regressions: 1965401
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: