Closed
Bug 1043713
Opened 10 years ago
Closed 10 years ago
custom property names exposed on nsComputedDOMStyle object should not have "--" prefix trimmed
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(1 file)
2.92 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
<!DOCTYPE html>
<body style="--something: x">
<script>
var cs = getComputedStyle(document.body);
alert(cs.item(cs.length - 1));
</script>
This alerts "something", but should alert "--something".
The CSSOM spec doesn't actually require custom properties to be exposed on the computed style object, but I think that's a bug. See <http://www.w3.org/mid/53D19EBD.1070000@mcc.id.au>.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment on attachment 8462250 [details] [diff] [review]
patch
r=me
Attachment #8462250 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•10 years ago
|
QA Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•