[prev in list] [next in list] [prev in thread] [next in thread]
List: konq-bugs
Subject: [Bug 147335] New: Nonstandard centering of absolutely positioned
From: Olivier Vitrat <ovit.debian () gmail ! com>
Date: 2007-06-28 16:51:08
Message-ID: 20070628185105.147335.ovit.debian () gmail ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=147335
Summary: Nonstandard centering of absolutely positioned boxes
Product: konqueror
Version: unspecified
Platform: Debian stable
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: konq-bugs kde org
ReportedBy: ovit.debian gmail com
Version: (using KDE KDE 3.5.5)
Installed from: Debian stable Packages
Reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357019
Package: konqueror
Version: 4:3.3.2-1sarge1
Test Case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>
Faulty Centering
</title>
<style>
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;
}
</style>
</head>
<body>
<div>
Fully centered white box with important information...
</div>
</body>
</html>
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
correctly.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic