Get all available css property values

Is it possible to get all css property values ​​using JavaScript? For example, can I get all the values ​​(poniter, resize, etc.) of the "cursor" property?

I know that I can get the value of a property from an element

element.style.cursor

But this obviously cannot show me all the possible meanings.

0
source share
2 answers

No, I don’t think that anywhere in the standard browser environment (such as it is!) Is accessible using JavaScript that lists all the possible values ​​of the CSS properties. (Even for those properties that have a limited set of possible values.)

, CSS 2010 ( , ). CSS Basic User Interface Level 3 CR (, box-sizing), CR LC [ WD] - W3C.

. ( .) , , , ( ) (W3C) (MDN) .

+4

Source: https://habr.com/ru/post/1741362/


All Articles