W3C home > Mailing lists > Public > www-style@w3.org > November 2010

[CSS21] clip is defined as logical but implementations implement it physical

From: Arron Eicholz <Arron.Eicholz@microsoft.com>
Date: Thu, 11 Nov 2010 23:36:12 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <07349ECFC3608F48BC3B10459913E70B0CA98700@TK5EX14MBXC132.redmond.corp.microsoft.com>
The 'clip' property seems to be defined in the CSS 2.1 spec as a logical property being affected by the direction property. However, most implementations implement the 'clip' functionality based on the physical sides.

<style type="text/css">
        background: green;
        border-top: 10px solid red;
        border-right: 30px solid red;
        border-bottom: 50px solid red;
        border-left: 100px solid red;
        clip: rect(10px, 300px, 210px, 100px);
        height: 200px;
        position: absolute;
        width: 200px;
<body style="direction: rtl;">

I think it would make the most sense to change the CSS 2.1 spec to match implementations.

Implementation results:
IE8: Physical
Firefox: Physical
Opera: Physical
Safari: Physical
Chrome: Physical
Konqueror: Logical

Arron Eicholz
Received on Thursday, 11 November 2010 23:37:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC