[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#357019: Nonstandard centering of absolutely positioned boxes

Package: konqueror
Version: 4:3.3.2-1sarge1

Test Case:
<?xml version="1.0" encoding="UTF-8"?>


<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">

    Faulty Centering
    body {
      color: white;
      background: black;
      padding: 0;
    div {
      position: absolute;
      top: 0px;
      right: 0px;
      bottom: 0px;
      left: 0px;
      color: black;
      background: white;
      margin: auto;
      width: 640px;
      height: 400px;

    Fully centered white box with important information...


If the browser window is large enought, one gets a fully centered white
box with text on black background.  If one resizes the window until the
box does not fit anymore (reload necessary), parts of the box get
inaccessible and the text gets lost.  The left/top margin must not get
negative so that the white box stays left and/or top aligned (cf. CSS 2.1,
10.3.7 and 10.6.4: If none of the three is 'auto'...).  Firefox does this

Cheers, Jens

Reply to: