Bullets on Hebrew webpage incorrectly left aligned due to erroneous markup.

Jeremy Moskovich jeremy at chromium.org
Sat Jun 27 19:38:10 UTC 2009


Hi Diego,
Thanks for the quick response!

It's perfectly legal to specify the dir attribute on both inline & block
level elements.

It's however not legal to enclose a block level element within an inline
element, for more information see
http://code.google.com/p/doctype/wiki/ArticleGoogleChromeCompatFAQ#Inline_elements_can't_enclose_block_elements

When you do enclose a block element with an inline element, you start
running into different behavior for each browser vendor.

Specifying the dir attribute on the enclosing ul or a surrounding div
should fix this in all browsers.

Best regards,
Jeremy

On Sat, Jun 27, 2009 at 5:47 AM, Diego Iastrubni <elcuco at kde.org> wrote:

> Hi Jeremy,
>
> so... according to the standard, "dir" can be assigned only to block
> emelemnts? good to learn...
>
> Thanks, this will be fixed soon. Thanks for noticing.
>
> - diego
>
> On Wednesday 24 June 2009 19:40:53 Jeremy Moskovich wrote:
> > Hi,
> > On http://www.kde.org/announcements/4.2/index-he.php , the bullet marks
> for
> > lists are aligned to the left (instead of to the right, as they should be
> > on RTL
> > webpages) when viewed on a WebKit based browser (e.g. Safari, Chrome,
> > etc.). I've attached a screenshot showing this behavior.
> >
> > The reason for this appears to be that the directionality of the list
> > is specified in a SPAN (line
> > 76)  that wraps the UL tag (line 141).  span is a inline element and ul
> is
> > a blocklevel element so the span is implicitly closed by WebKit when the
> UL
> > is reached.
> >
> > Even though this markup is technically incorrect, Firefox & IE still
> apply
> > the style to the enclosing block level element and that's why the bullets
> > appear aligned correctly on those browsers (
> > https://bugs.webkit.org/show_bug.cgi?id=23804#c4).
> >
> > A possible fix for this would be to convert the enclosing span into a
> > div, or assign the directionality on the UL element.
> >
> > This is filed in the Chromium bugtracker at:
> > http://crbug.com/11445
> >
> > Feel free to contact me if you have any questions.
> >
> > Thanks and best regards,
> > Jeremy
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kde-www/attachments/20090627/17e5a75a/attachment.html>


More information about the kde-www mailing list