If I use the following CSS:
p {
font-size: 20.5px;
}
Will all browsers draw that as 20.5px
, or will some round the value?<
All latest versions of browsers allow for sub-pixel rendering*. See the research and the table of differences between browser versions.
Older browsers mostly round the pixels down. Most notable exception is IE8 and IE9 which round to the nearest integer (IE7 does also round down, IE10 and up use sub-pixel rendering).
* If you define the size in percentages, the value in pixels might be different as when you directly define it in pixels.