Re: Trying to understand overflow:hidden



lyallex wrote:
If I simply add overflow:hidden to outer and reload the page
the border for outer extends below the two floating divs, Previously, outer had no content, now apparently it does. I'm confused. I think it might have something to do with the clip attribute but this behavoiur doesn't seem to follow [my understanding of] the spec at all.

For future reference, the most confusing and important part of the spec is probably §10 Visual formatting model details. That is the part that actually tells you how to compute values.

By default, the overflow property is 'visible'. Relevant section: §10.6.3 Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' (helpful title!)

[ ... ]

Only children in the normal flow are taken into account (i.e., floating boxes and absolutely positioned boxes are ignored, and relatively positioned boxes are considered without their offset).

When overflow is set to hidden, the height computation changes to §10.6.7 'Auto' heights for block formatting context roots

[ ... ]
In addition, if the element has any floating descendants whose bottom margin edge is below the bottom, then the height is increased to include those edges.

I won't deny I'm struggling to understand the spec.

The hardest parts of the spec are trying to figure out which section to look at (sections §8-§11 all deal with the formatting model but §10 is probably the most relevant for problems, as it is the most confusing).

I would also say that the CSS spec is the most difficult-to-understand spec I've ever read.

--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.



Relevant Pages

  • Re: Error while launching RTP application in vxWorks 6.6
    ... only but the executable has been built using build specs for a target ... supporting hardware floating point. ...  - unless you built your RTP executable as a dynamic executable (i.e. ... How to disable the hardware floating point support in Build spec. ...
    (comp.os.vxworks)
  • Re: COM/COM+ Components running in Linux?
    ... > I think you're confusing M$ pushing DCOM/MTS with COM. ... Where is the spec, if it ... It also exists on OpenVMS, Digital Unix, Solaris, HP-Unix. ...
    (alt.os.linux)
  • Re: Reliable numerics in LISP? Matlisp, f2cl, Maxima, help to port xlispstat, clean the dust off Num
    ... issues between the different Lisp systems that have yet to be resolved. ... After some investigation of floating point arithmetic in CL ... I have concluded that the spec is just not strong enough to make it ... Implementations differ as to treatment of nonnumeric values. ...
    (comp.lang.lisp)
  • Alt text for equations
    ... confusing to present them in line, so I use MS-Word Equation editor ... HTML 4.01 spec: http://www.w3.org/TR/html401/ ... validator: http://jigsaw.w3.org/css-validator/ ...
    (comp.infosystems.www.authoring.html)
  • Re: Prime Spectrum and Axiom of Choice
    ... I think you should restate your new conjecture in full. ... It's too confusing to try to piece together the various scattered ... Is this a characterization for isolated points of Spec R: ... I negated the condition in my original post. ...
    (sci.math)