Closed Bug 2012042 Opened 10 days ago Closed 5 days ago

(::before|::after)::marker doesn't support attr()

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: nchevobbe, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file test case

Steps to reproduce

  1. Open attached test case

Expected results

Under Hello, there's a * character (coming from content: attr(data-mark, "?") since we have the following markup <div data-mark="*">)

Actual results

Under Hello, there's a ? character (the fallback value of attr() )

The frame constructor or nsAttrTextNode should walk to the ultimate originating element. Should be an easy fix.

I expect the attr() work Diego and Swarup are doing to eventually fix this as well, once we work on pseudo elements.

Blocks: css-attr

Seems easiest to fix this in nsAttributeTextNode::BindToTree, probably. Trying a simple patch: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=174978

Severity: -- → S3
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4dca853c619a https://hg.mozilla.org/integration/autoland/rev/7837393122ef Make attr() walk to the originating element of a pseudo-element to find the value. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57377 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: