What does the meaning of this CSS value mean?

While looking at the source of the webpage, I came across this CSS applied to the range inside the button:

.whatever button span {
    position: absolute;
    left: -1e+7px;
}

What does it mean left: -1e+7px;? Is this some kind of trick I should know about?

0
source share
5 answers

, ( -10 000 000 ). , CSS ( , Google " css" Batik - SVG - ). , CSS , , , , , .

, .

+4

CSS2 Numbers


( ~ integer ~) ( ~ ~). . ~ 0 9. ~ , , (.), . , "-" "+", . -0 0 .


IE . Firefox .

+2

CSS ? , , ?

0

, -1 * 10 ^ 7 = -10000000.

0

This is invalid CSS, according to the W3C validator :

.whatever button span    Value Error : position attempt to find a semi-colon before the property name. add it
.whatever button span    Value Error : left Unknown dimension 1e

If you add the missing ;after position: absolute, you will still get:

whatever button span     Value Error : left Unknown dimension 1e
0
source

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


All Articles