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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: heycam, Assigned: heycam)

References

Details

Attachments

(1 file)

<!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>.
Blocks: 1043461
Attached patch patchSplinter Review
Assignee: nobody → cam
Status: NEW → ASSIGNED
Attachment #8462250 - Flags: review?(bzbarsky)
Attachment #8462250 - Flags: review?(bzbarsky) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 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.

Attachment

General

Created:
Updated:
Size: