justify does not respect nbsp

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

justify does not respect nbsp

Foteos  Macrides
In this:

http://www.macridesweb.com/oltest/FxBug_justify_nbsp.html

test file I have a table data cell with text-align:justify, and non-breaking
spaces used to group words.  IE and Opera respect the nbsp entities and
expand only the normal white space to achieve the justification, whereas
Firefox does not respect the entities and expands the spaces within the
intended word groups as well.

This bug is still present in last night's trunk build (rv:1.9a3pre)
Gecko/20070324 Minefield/3.0a3pre).

Is this a know bug (I didn't find it in a Bugzilla search, but I'm not very
good at those), and is anyone likely to fix it before the Firefox v3.0
release?

Fote
--


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: justify does not respect nbsp

Eli Friedman
Foteos Macrides wrote:

> In this:
>
> http://www.macridesweb.com/oltest/FxBug_justify_nbsp.html
>
> test file I have a table data cell with text-align:justify, and non-breaking
> spaces used to group words.  IE and Opera respect the nbsp entities and
> expand only the normal white space to achieve the justification, whereas
> Firefox does not respect the entities and expands the spaces within the
> intended word groups as well.
>
> This bug is still present in last night's trunk build (rv:1.9a3pre)
> Gecko/20070324 Minefield/3.0a3pre).
>
> Is this a know bug (I didn't find it in a Bugzilla search, but I'm not very
> good at those), and is anyone likely to fix it before the Firefox v3.0
> release?
>
> Fote

https://bugzilla.mozilla.org/show_bug.cgi?id=156211.

-Eli
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: justify does not respect nbsp

Foteos  Macrides
It's a pity that the developers chose to put the Geckos at odds with the
other browsers on this matter.

Fote
--

"Eli Friedman" <[hidden email]> wrote in message
news:[hidden email]...

> Foteos Macrides wrote:
>> In this:
>>
>> http://www.macridesweb.com/oltest/FxBug_justify_nbsp.html
>>
>> test file I have a table data cell with text-align:justify, and
>> non-breaking spaces used to group words.  IE and Opera respect the nbsp
>> entities and expand only the normal white space to achieve the
>> justification, whereas Firefox does not respect the entities and expands
>> the spaces within the intended word groups as well.
>>
>> This bug is still present in last night's trunk build (rv:1.9a3pre)
>> Gecko/20070324 Minefield/3.0a3pre).
>>
>> Is this a know bug (I didn't find it in a Bugzilla search, but I'm not
>> very good at those), and is anyone likely to fix it before the Firefox
>> v3.0 release?
>>
>> Fote
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=156211.
>
> -Eli


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: justify does not respect nbsp

Foteos  Macrides
Although the bug discussion claims that alternative entities such as &ensp;
or &emsp; could be used, they don't do the job with respect to suppression
of line breaks, which is also wanted.  I tried &zwj;&ensp;&zwj; but that
didn't work out, either.
The bug discussion ended 3 years ago.  Could it be revisited in conjunction
with the more current, "defacto standards" mentality?

Fote
--


"Foteos Macrides" <[hidden email]> wrote in message
news:[hidden email]...

> It's a pity that the developers chose to put the Geckos at odds with the
> other browsers on this matter.
>
> Fote
> --
>
> "Eli Friedman" <[hidden email]> wrote in message
> news:[hidden email]...
>> Foteos Macrides wrote:
>>> In this:
>>>
>>> http://www.macridesweb.com/oltest/FxBug_justify_nbsp.html
>>>
>>> test file I have a table data cell with text-align:justify, and
>>> non-breaking spaces used to group words.  IE and Opera respect the nbsp
>>> entities and expand only the normal white space to achieve the
>>> justification, whereas Firefox does not respect the entities and expands
>>> the spaces within the intended word groups as well.
>>>
>>> This bug is still present in last night's trunk build (rv:1.9a3pre)
>>> Gecko/20070324 Minefield/3.0a3pre).
>>>
>>> Is this a know bug (I didn't find it in a Bugzilla search, but I'm not
>>> very good at those), and is anyone likely to fix it before the Firefox
>>> v3.0 release?
>>>
>>> Fote
>>
>> https://bugzilla.mozilla.org/show_bug.cgi?id=156211.
>>
>> -Eli
>
>


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: justify does not respect nbsp

Foteos  Macrides
Foteos Macrides wrote:
> Although the
> https://bugzilla.mozilla.org/show_bug.cgi?id=156211
> discussion claims that alternative entities such as &ensp; or &emsp;
> could be used [snip]

That bug was marked RESOLVED INVALID based on the developers' view that the
Geckos are respecting the Unicode Standard Annex #14:

http://www.unicode.org/reports/tr14/tr14-19.html

by treating &nbsp; (U+00A0 NO-BREAK SPACE) as indeed NON-BREAKING but still
subject to expansion when a text-align:justify; CSS rule is being applied.

Note, however, that Annex #14 also states that though the other spacing
entities such as &ensp; (U+2002  EN SPACE) and &emsp; (U+2002  EM SPACE) are
not subject to expansion, they still are BREAKING.  Firefox is treating them
as non-expanding, but both are MUCH wider than U+0020 (ASCII space) or
U+00A0.  Moreover, Firefox is not in fact respecting Annex #14 because it is
treating those other spacing entities as NON-BREAKING..  The other modern
browsers do treat them as non-expanding but BREAKING.

In general, the Geckos not only aren't fully respecting Annex #14 as
imagined, but couldn't be more at odds with the other modern browsers in
this matter.

Fote
--


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: justify does not respect nbsp

fantasai
Foteos Macrides wrote:

> Foteos Macrides wrote:
>> Although the
>> https://bugzilla.mozilla.org/show_bug.cgi?id=156211
>> discussion claims that alternative entities such as &ensp; or &emsp;
>> could be used [snip]
>
> That bug was marked RESOLVED INVALID based on the developers' view that the
> Geckos are respecting the Unicode Standard Annex #14:
>
> http://www.unicode.org/reports/tr14/tr14-19.html
>
> by treating &nbsp; (U+00A0 NO-BREAK SPACE) as indeed NON-BREAKING but still
> subject to expansion when a text-align:justify; CSS rule is being applied.
>
> Note, however, that Annex #14 also states that though the other spacing
> entities such as &ensp; (U+2002  EN SPACE) and &emsp; (U+2002  EM SPACE) are
> not subject to expansion, they still are BREAKING.  Firefox is treating them
> as non-expanding, but both are MUCH wider than U+0020 (ASCII space) or
> U+00A0.  Moreover, Firefox is not in fact respecting Annex #14 because it is
> treating those other spacing entities as NON-BREAKING..  The other modern
> browsers do treat them as non-expanding but BREAKING.
>
> In general, the Geckos not only aren't fully respecting Annex #14 as
> imagined, but couldn't be more at odds with the other modern browsers in
> this matter.

Most of the line breaking rules in UAX 14 are non-normative. The line breaking
opportunities defined by UAX 14 are just a suggestion. Most of UAX 14 is
effectively informative. This includes notes on justification behavior.

However, note that nbsp decomposes to space + non-breaking behavior. It is
expected to render exactly the same as a space character: the only difference
is that it doesn't allow line breaks.

~fantasai
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout