RE: [css-wywiwyg] browser interpretation of css

From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU] 
>On 5/7/12 7:13 PM, Rik Schaaf wrote:
>> For instance: If one says width: 80px, all browsers should handle it 
>> the same way (with/without border / padding / margin)
>>
>> This example is handled the same way by at least the major browsers
>Actually, no.  It's not.  Certainly not if you say "width: 80.5px", say.
>
>Note that the same browser would render that differently depending on the exact ratio of CSS px to device pixels on the target device.

Other, sometimes surprising factors, come into play such as where the associated element is on the page (its offsets), what other "modes" are in play for the browser or the document, whether non-rectangular clipping is present, the DPI of the device, etc.

Received on Tuesday, 8 May 2012 01:49:18 UTC