Bug Report T1282331
Visible to All Users

Width specified as a percentage is incorrectly calculated for an 'absolute' display style element that is placed in a 'relative' display style element

created 2 days ago (modified 2 days ago)

Steps to reproduce:

Use the following template:

HTML
<div class="containter"> <div class="inner"></div> </div>
CSS
.containter{ width:200px; height:50px; background-color:white; position:relative; } .inner{ width:50%; height:50px; background-color:red; position:absolute; }

Expected results:

The inner element occupies half of the parent element.

Current results:

The inner element occupies a smaller area of the parent element.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.