- 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>
Received on Thursday, 11 November 2010 23:37:01 UTC
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">
div
{
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;
}
</style>
<body style="direction: rtl;">
<div></div>
</body>
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
--
Thanks,
Arron Eicholz
Received on Thursday, 11 November 2010 23:37:01 UTC