Closed Bug 2014060 Opened 6 months ago Closed 5 months ago

[css-attr] attr() should support namespaced attributes.

Categories

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

defect
Points:
3

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: emilio, Assigned: descalante)

References

(Blocks 2 open bugs)

Details

(Keywords: dev-doc-complete, Whiteboard: css-attr, [wptsync upstream])

Attachments

(2 files)

A quick run with attr enabled by default shows some interesting failures: https://treeherder.mozilla.org/jobs?repo=try&revision=4242db087491ac39f9e5ad169228b746fc926082

A bunch of them are due to missing namespace support for attr(). The <attr-name> production includes an optional namespace prefix. The content function deals with it, might be worth factoring the namespace_prefix + namespace_url + attribute into a common AttrName struct.

There are also a few invalidation issues (not totally unexpected).

Duplicate of this bug: 2014738
Assignee: nobody → descalante
Points: --- → 3
Whiteboard: css-attr
See Also: → 2018786
Pushed by descalante@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/298da9a3d9c2 https://hg.mozilla.org/integration/autoland/rev/fa90b2078932 Add support for namespaces in attributes used in attr(). r=emilio,firefox-style-system-reviewers,dshin https://github.com/mozilla-firefox/firefox/commit/f0e6f7855365 https://hg.mozilla.org/integration/autoland/rev/1b7975726a43 Add wpt testing proper parsing and handling of namespaces in attr function. r=dshin
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58109 for changes under testing/web-platform/tests
Whiteboard: css-attr → css-attr, [wptsync upstream]
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Upstream PR merged by moz-wptsync-bot
Blocks: 2021110
Keywords: dev-doc-needed
QA Whiteboard: [qa-triage-done-c151/b150]

I am not sure this is working as expected.

See line 20 in the CSS of this codepen

I could have written this wrong.

Flags: needinfo?(descalante)

Dave I think it's working fine? The data-color attribute there has null namespace not svg-namespace

Flags: needinfo?(descalante)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: