I am looking for eg. "width: min-content" not "width: 210px" or "green" instead of "rgb(0,255,0)". So $(elem).css("width")
is not what I am searching for.
I take the naming (specified or computed) from MDN
The specified value of a CSS property is the value it receives from the document's style sheet. The specified value for a given property is determined according to the following rules: ...
The computed value of a CSS property is the value that is transferred from parent to child during inheritance. It is calculated from the specified value by: ...
vs.:
The resolved value of a CSS property is the value returned by getComputedStyle().
For most properties, it is the computed value, but for a few legacy properties (including width and height), it is instead the used value.
The used value of a CSS property is its value after all calculations have been performed on the computed value.
One reason is, that I am overworking some layouts to (almost) only implicit sizes, and warn myself if I missed an explicit width in CSS files.
An other is, that I want to help grid to display a variable count of elements to place it in a more 'square' manner, depending on the space available. Therefore I need to know if the spec for grid items is min- or max-content.
Edit: Walking through styles sheets can't be a solution - that would mean to program the whole inheritance of CSS ...