Should child DIV be clipped by parent DIV?

Hi! Can anyone clarify this issue
HdiSim clips child DIV by the parent DIV in the following example. But all HTML Browsers don't clip child (in the similar HTML/CSS2 test). According to CSS/XSL spec, clipping is controlled by 'overflow' and 'clip' properties. iHD spec doesn't describe them. XSL spec defines initial value of 'overflow' property as auto: "The behavior of the "auto" value is user agent dependent, but should cause a scrolling mechanism to be provided for overflowing boxes." Is 'clipping' correct behavior

<body style:backgroundColor="green" style:opacity="0.3" style:font="font.ttf">
<div style:backgroundColor="red" style:x="100px" style:opacity="0.4"
style:y="100px" style:position="absolute" style:width="200px"
style:height="300px">
<div style:backgroundColor="blue" style:opacity="0.3" style:x="150px"
style:y="150px" style:position="absolute" style:width="200px"
style:height="300px">
</div>
</div>
</body>

Thanks in advance


Answer this question

Should child DIV be clipped by parent DIV?

  • mattdawg

    Chapter 7.3.1.3.1 states:

    The overflow property in XSL section 7.20.2 for the format object is treated as hidden

    This was added in one of the supplementals, since the original spec had not defined it and there was confusion regarding clipping.

    So yes, children should always be clipped by their parents.


  • Dew777

    Thanks for comprehensive answer, now everything is clear.
  • Dietz

    Yes, parent divs will always clip child divs. There is no overflow style attribute for the HDi markup.


  • Should child DIV be clipped by parent DIV?