[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#30086: cssFloat doesn't seem to be functional in Konqueror
From:       djoham () yahoo ! com
Date:       2001-07-31 20:38:19
[Download RAW message or body]

Package: kjs
Version: KDE 2.2.0 CVS/CVSup/Snapshot
Severity: normal
Installed from:    Compiled sources
Compiler:          gcc 2.96 (RH 7.1)
OS:                Linux
OS/Compiler notes: Not Specified


The HeirMenus JavaScript Menu API uses the JavaScript style element cssFloat. I can \
see that KJS exposes this function in css_extenstions.cpp, but Konqueror seems to \
ignore it.

Oddly enough, if you use the "float" attribute in a cascading stylesheet, Konqueror \
renders the element exactly as I would expect.

Here's a recreation. Note that the span that I add with the className property set \
renders as I would expect. Unfortunatly, with these menus, I don't have a stylesheet \
available to use, so I'm forced to use cssFloat which doesn't work in Konqi.

Mozilla renders the page as I would expect

----recreation follows ---



<html>
<head>
        <style>
                SPAN.floatRight {
                        position: relative;
                        float: right;
                }
        </style>
</head>
<body>
<form>
<input type="button" onclick="go();" value="Create Elements">
</form>
</body>
</html>
<script language="javascript">
function go() {
        var newDiv = document.createElement("DIV");
        newDiv.innerHTML = \
"&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>";  \
newDiv.id = "newDiv";  newDiv.style.position = "absolute";
        newDiv.style.left = "200px";
        newDiv.style.width = "600px";
        newDiv.style.height = "200px";
        newDiv.style.backgroundColor = "yellow";
        document.body.appendChild (newDiv);

        var x = document.createElement("SPAN");
        x.innerHTML = "I'm aligned right!";
        x.style.backgroundColor = "red";
        x.className = "floatRight";
        document.getElementById("newDiv").appendChild(x);

        var x = document.createElement("SPAN");
        x.innerHTML = "I'm not aligned right, but I should be";
        x.style.position = "relative";
        x.style.cssFloat = "right";
        document.getElementById("newDiv").appendChild(x);

}



</script>

(Submitted via bugs.kde.org)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic