Re: [WSG] Firefox bug on CSS white-space property

2007-08-29 Thread Julián Landerreche
 To look at the issue laterally, if your fixed-width table requires
 thatlong links wrap, why invoke the no-wrap rule at all? Obviously this
 snippet gives no clue as to the broader context, but what if you leave
 white-space at its default setting of normal - by omitting it?


The context is: an HTML newsletter (designed for looking good at e-mail
clients) that's also posted in Craigslist. The CSS rule is applied by
craigslist.css, so there is no-way I can avoid that.
Also, I can't apply inline styling to a elements because they are totally
stripped out by CL. That's why I'm applying them to parent and child  of the
a elements (CL doesn't strip them).
That's why i'm using nasty mark-up.

Since you applied the white-space: normal to a span element which is not
 
  a block-level element it is ignored. By changing the span to a div
  *or*
  adding display:block to the span's style, you will get the effect you
  were expecting.


Ok. Thanks for that one, Kepler! It worked fine.


 And yes that is the expected behaviour. 'Width' on table and td/th is
  more like 'min-width' (idem dito for 'height').


Thanks for that one, Philippe. See ya at TxP forums ;)


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Firefox bug on CSS white-space property

2007-08-28 Thread Nick Gleitzman

Julián Landerreche wrote:


I have tested this in:
 - Firefox 2.0.0.6 (both Win and Linux)


Hmm. Not convinced that it's a bug; your line-wrapped link appears as 
you want in FF2.0.0.6/Mac OSX - ?


To look at the issue laterally, if your fixed-width table requires that 
long links wrap, why invoke the no-wrap rule at all? Obviously this 
snippet gives no clue as to the broader context, but what if you leave 
white-space at its default setting of normal - by omitting it?


N
___
omnivision. websight.
http://www.omnivision.com.au/



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Firefox bug on CSS white-space property

2007-08-28 Thread Kepler Gelotte
Hi, 

I don’t think it is a bug. First of all you are not overriding the
white-space property buy assigning it to child elements or parent elements.
You just create a conflict. Then precedence takes affect. According to the
CSS2 spec:

'white-space' 
Value:  normal | pre | nowrap | inherit 
Initial:  normal 
Applies to:  block-level elements 
Inherited: yes 
Percentages:  N/A 
Media: visual

Since you applied the “white-space: normal” to a span element which is not
a block-level element it is ignored. By changing the span to a div *or*
adding “display:block” to the span’s style, you will get the effect you were
expecting.

Regards,
Kepler



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Julián Landerreche
Sent: Tuesday, August 28, 2007 9:10 PM
To: [EMAIL PROTECTED]; wsg@webstandardsgroup.org
Subject: [WSG] Firefox bug on CSS white-space property

Hi all.
First: sorry, I'm double posting this on two lists so anyone can confirm
this (before reporting to Mozilla).

The issue is simple (you will see it better by just creating a testing
html with the snippet below): 

- there is a white-space:nowrap property (in the stylesheet) applied to
the a element .
- then, that rule is override with some inline styling applied
(white-space:normal) on two elements: one that wraps the a elements and
one that is wrapped by the a element (that also contains the text). 
- the text  inside the a elements is a very very very long link.
- and the link is inside a table with a fixed with.
- every tested browser (but FF) honors both the width of the table and the
white-space:normal applied to both the parent and children of the a
elements. 
- but Firefox just expands the table width and doesn't break the link in
multiple lines as expected.
 



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Firefox bug on CSS white-space property

2007-08-28 Thread Philippe Wittenbergh


On Aug 29, 2007, at 10:47 AM, Kepler Gelotte wrote:


I don’t think it is a bug. First of all you are not overriding the
white-space property buy assigning it to child elements or parent  
elements.
You just create a conflict. Then precedence takes affect. According  
to the

CSS2 spec:

'white-space'
Value:  normal | pre | nowrap | inherit
Initial:  normal
Applies to:  block-level elements
Inherited: yes
Percentages:  N/A
Media: visual

Since you applied the “white-space: normal” to a span element  
which is not
a block-level element it is ignored. By changing the span to a  
div *or*
adding “display:block” to the span’s style, you will get the effect  
you were

expecting.


But in the testcase, the white-space property is applied to the a  
(in the head: a {white-pace:nowrap})

Firefox 2.0.0.x should _ignore_ that as well.

Anyway, my Gecko trunk builds (Minefield 20070828 and Camino trunk  
build) correctly wrap the text the same way Safari and WebKit wrap  
the text (ignore the white-pace:nowrap).

So Firefox 3.0 will display correctly.

And if the link text were to long for the space allowed by the table  
(e.g. a very very long word), the table should expand, unless the  
table has 'table-layout: fixed' specified.


Philippe
---
Philippe Wittenbergh
http://emps.l-c-n.com





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Firefox bug on CSS white-space property

2007-08-28 Thread Kepler Gelotte

 And if the link text were to long for the space allowed by the table  
 (e.g. a very very long word), the table should expand, unless the  
 table has 'table-layout: fixed' specified.

The table should expand even though he specified width=175? I learn
something new every day.

Regards,
Kepler



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Firefox bug on CSS white-space property

2007-08-28 Thread Philippe Wittenbergh


On Aug 29, 2007, at 12:43 PM, Kepler Gelotte wrote:


And if the link text were to long for the space allowed by the table
(e.g. a very very long word), the table should expand, unless the
table has 'table-layout: fixed' specified.


The table should expand even though he specified width=175? I learn
something new every day.

Try this:
http://dev.l-c-n.com/_temp/wp.html

And yes that is the expected behaviour. 'Width' on table and td/th is  
more like 'min-width' (idem dito for 'height').


Philippe
---
Philippe Wittenbergh
http://emps.l-c-n.com





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***