[css-d] Block elements in links

2010-12-13 Thread Bobby Jack
Hi all, I'm investigating an issue in Firefox relating to block display of an element within a link. Here's an example: http://www.fiveminuteargument.com/list-display-testing.html In Safari, a link containing a block element simply wraps that element. However, in Firefox, extra space is

Re: [css-d] Block elements in links

2010-12-13 Thread Chetan Crasta
I think Firefox, Opera and IE 8 show the correct behavior. An element with display:block that is within an inline element generates a block box within the context that it is in (the inline box). This can be seen when a span with a p has display:block and also in your third example with text

Re: [css-d] Block elements in links

2010-12-13 Thread Bobby Jack
--- On Mon, 12/13/10, Chetan Crasta chetancra...@gmail.com wrote: I think Firefox, Opera and IE 8 show the correct behavior. An element with display:block that is within an inline element generates a block box within the context that it is in (the inline box). This can be seen when a span

Re: [css-d] Block elements in links

2010-12-13 Thread Chetan Crasta
1. div style=background-color: #ccc; display: list-item;a href=#span style=display: block;test/span/a/div Opera shows extra space on 2. but not on 1. Opera puts the extra space only if there is text before or after the a. ~Chetan

Re: [css-d] Block elements in links

2010-12-13 Thread Philippe Wittenbergh
On Dec 13, 2010, at 7:13 PM, Bobby Jack wrote: http://www.fiveminuteargument.com/list-display-testing.html In Safari, a link containing a block element simply wraps that element. However, in Firefox, extra space is created before the nested block element. Does anyone know what the

Re: [css-d] Block elements in links

2010-12-13 Thread Bobby Jack
--- On Mon, 12/13/10, Chetan Crasta chetancra...@gmail.com wrote: 1. div style=background-color: #ccc; display: list-item;a href=#span style=display: block;test/span/a/div Opera shows extra space on 2. but not on 1. Opera puts the extra space only if there is text before or after the

Re: [css-d] Block elements in links

2010-12-13 Thread Chetan Crasta
Which version? I get the extra space, in that exact example, in Opera 10.60 Opera 10.63 Linux http://roughtech.com/t/list-display-testing.html ~Chetan __ css-discuss [cs...@lists.css-discuss.org]

Re: [css-d] Block elements in links

2010-12-13 Thread Philippe Wittenbergh
On Dec 13, 2010, at 9:41 PM, Chetan Crasta wrote: Which version? I get the extra space, in that exact example, in Opera 10.60 Opera 10.63 Linux http://roughtech.com/t/list-display-testing.html Opera is misaligning the list marker, but doesn't put extra space. a few variations on the tests

Re: [css-d] Block elements in links

2010-12-13 Thread Bobby Jack
--- On Mon, 12/13/10, Philippe Wittenbergh e...@l-c-n.com wrote: Which version? I get the extra space, in that exact example, in Opera 10.60 Opera 10.63 Linux http://roughtech.com/t/list-display-testing.html Opera is misaligning the list marker, but doesn't put extra space. Of course

Re: [css-d] Block elements in links

2010-12-13 Thread Chetan Crasta
So it definitely looks as if we have a fairly minor bug in Opera, and a more significant bug in Firefox. If anyone's thinking of filing a bug or looking into this in more detail, I have some anecdotal evidence (from a third party) that the Firefox behaviour was not present in April, which