Closed Bug 1043713 Opened 7 years ago Closed 7 years ago
custom property names exposed on ns
Computed DOMStyle object should not have "--" prefix trimmed
<!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.email@example.com>.
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8462250 - Flags: review?(bzbarsky)
Comment on attachment 8462250 [details] [diff] [review] patch r=me
Attachment #8462250 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
QA Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.