quirks mode full standards mode

Values without units

Here we have two <div> objects with fixed width of 400 pixels. The first one has specified units, the second doesn’t.

In standards mode the second object has 100% width (default value).

In compatibility mode both objects have equal width because the value is automatically assumed to be measured in pixels.

width: 400px
width: 400