Closed Bug 1416846 Opened 7 years ago Closed 4 years ago

Please explain how to get the computed style value

Categories

(Developer Documentation Graveyard :: API: CSSOM, enhancement, P3)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lennart.borgman, Assigned: eweyl)

Details

(Whiteboard: [specification][type:change])

What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
This is about a missing piece on a documentation page. I was looking for the "used value" of the z-index style. This style is a little bit tricky (with some corner cases fooling me). So I tried to investigate what was happening.

The page "Used value - CSS" give some hints, but I did not get any further than

window.getComputedStyle(elementNode).zIndex

which returned "auto". :-(

What I really wanted to know was how to get the "used value", the z-index.

So, I am still in doubt. Is there a way to get the "used value"? If so, how?

I think the page should tell me this.

What problems would this solve?
===============================
How to get the "used value".

Who would use this?
===================
Any developer using CSS.

What would users see?
=====================
Some more useful info...

What would users do? What would happen as a result?
===================================================
They would cry and scream in relief.

Is there anything else we should know?
======================================
I filed this as requested in the first comment here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1414618
Component: General → API: CSSOM
Product: Mozilla Developer Network → Developer Documentation
Hiya,

I am currently looking for bugs to fix as part of my Open Source Development module at Coventry University and I am interested in developing this bug.

Please could you assign this task to me and give me more information.

This is my first bug fix and any help would be appreciated.

Thank you.
Assignee: nobody → eweyl
Priority: -- → P3
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.