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

List:       konq-bugs
Subject:    Bug#19198: marked as done ("percentages in inline elements are not processed") by Dirk Mueller <muel
From:       owner () bugs ! kde ! org (Stephan Kulow)
Date:       2001-11-01 20:48:03
[Download RAW message or body]

Your message with subj: Bug#19198: percentages in anchors are not handled

On Mon, 22 Okt 2001, Seth Chaiklin wrote:

works fine in 2_2 branch and head

> The problem with SPAN and percentages also appears in
> KDE 2.2.1
> 
> And here is another  problem with Anchors in KDE 2.2.1, so I will make an 
> inductive generalization and change the title of the bug to "inline elements"
> 
> The problem is that percentages are not handled by Konqueror (i.e., it has no 
> effect) when used as margin-left in anchors, even though according to the CSS 
> specs it should.
> 
> Here is an example to test this claim.
> 
> <html>
> <head>
> <title>KHTML - Margin test</title>
> <style type="text/css">
> <!--
> p {margin-left: 0}
> p.px  {margin-left: 100px}
> p.em  {margin-left: 3em}
> p.per  {margin-left: 20%}
> a {margin-left: 0}
> a.px  {margin-left: 100px}
> a.em  {margin-left: 3em}
> a.per  {margin-left: 20%}
> -->
> </style>
> </head>
> <body>
> 
> <h1>Margin-left works for paragraphs</h1>
> <p>p with margin-left: 0</p>
> <p class="px">p with margin-left: 100px</p>
> <p class="em">p with margin-left: 3em</p>
> <p class="per">p with margin-left: 20%</p>
> 
> <h1>Margin-left for anchors: Percentage does not work</h1>
> <a>a with margin-left: 0</a><br>
> <a class="px">a with margin-left: 100px</a><br>
> <a class="em">a with margin-left: 3em</a><br>
> <a class="per">a with margin-left: 20%</a>
> 
> </body>
> </html>
> 
> 
> I have a testpage at:  <http://www.psy.aau.dk/~seth/margintest.html>
> 
> 
> The relevant pieces from the CSS spec are:
> 
> CSS1
> 
> 5.5.4    'margin-left'
> 
> Value: <length> | <percentage> | auto
>  Initial: 0
>  Applies to: all elements
>  Inherited: no
>  Percentage values: refer to width of closest block-level ancestor
> 
> 
> CSS2 "9.4.2 Inline formatting context":
> 
>   "Since an inline box may not exceed the width of a line box, long
> inline boxes are split into several boxes and these boxes distributed
> across several line boxes. When an inline box is split, margins,
> borders, and padding have no visual effect where (the split occurs -
> REC-CSS2-19980512)/(one or more splits occur - Errata)."
> 
>   <http://www.w3.org/TR/REC-CSS2/visuren.html#inline-formatting>
>   <http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata>
> 
> 
> _______________________________________________
> Konq-bugs mailing list
> Konq-bugs@mail.kde.org
> http://mail.kde.org/mailman/listinfo/konq-bugs
Dirk

has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Stephan Kulow
(administrator, KDE bugs database)

Received: (at submit) by bugs.kde.org; 27 Jan 2001 09:05:16 +0000
Received: (qmail 13177 invoked from network); 27 Jan 2001 09:05:16 -0000
Received: from seth.psy.aau.dk (root@130.225.10.6)
  by max.tat.physik.uni-tuebingen.de with SMTP; 27 Jan 2001 09:05:16 -0000
Received: from seth.psy.aau.dk (seth@seth.psy.aau.dk [130.225.10.6])
	by seth.psy.aau.dk (8.11.1/8.11.1) with SMTP id f0R95Er11717
	for submit@bugs.kde.org; Sat, 27 Jan 2001 10:05:14 +0100
Date: Sat, 27 Jan 2001 10:05:14 +0100
Message-Id: <200101270905.f0R95Er11717@seth.psy.aau.dk>
Subject: span does not accept percentages in styling
From: Seth Chaiklin <seth@psy.aau.dk>
To: submit@bugs.kde.org
X-Spam-Rating: max.tat.physik.uni-tuebingen.de 0/1000/N

Package: khtml
Version: 3.0 (KDE 2.0)
Severity: grave
Compiler: gcc version 2.95.2 19991024 (release)
OS: Linux 2.4.0 i586 (compiled sources)

Greetings,

The following html code will show that span does not
accept percentages (as indicated in CSS1), but will
accept lengths for margin-left.  I haven't tried with the
margin: shorthand, or all the other margins....but this
should at least illustrate the general problem.  Presumably
this problem is not just with the SPAN selector, but
with all?  (I haven't checked.)

Note that this might be related to bug #19191
where I showed the text-indent does not
handle percentages.

Cheers,
  Seth Chaiklin

<html>
<head>
<title>KHTML - span-left margin/percentage test</title>
<style type="text/css">
<!--
span.c1 {color: green; font-style:italic; margin-left: 20%; }
span.c2 {margin-left: 20%; }
span.c3 {margin-left: 20px;}
span.c4 {margin-left: 20em;}
span.c5 {margin-left: 20mm;}
span.c6 {margin-left: 10%;}
span.c7 {margin-left: 10;}
-->
</style>
</head>
<body>

<span class="c1">Let's be sure that we can apply any style. See it is green and italic, but
not indented!</span>  <br>

<span class="c2">Let's be sure that it is not an interaction effect</span> <br>

<span class="c3">Lengths work. Here is 20px.</span> <br>
<span class="c4">Lengths work. Here is 20em.</span><br>
<span class="c5">Lengths work. Here is 20mm.</span>   <br>
<span class="c6">But percentages do not work!, even if the spec says they should.</span>  <br>
<span class"c7">Just curious what will happen.</c7> <br>

</body>
</html>


_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://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