Bug 21709 - List markers inside <CENTER> are not center aligned
Summary: List markers inside <CENTER> are not center aligned
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 10:04 PDT by deepak.sherveghar
Modified: 2016-12-27 08:30 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description deepak.sherveghar 2008-10-17 10:04:50 PDT
I have this simple html page:
<HTML>
<BODY>
<CENTER>
  <OL>
    <LI>aaaa</LI>
    <LI>bbbb</LI>
  </OL>
</CENTER>
</BODY>

Expected Result:
List should be center aligned i.e the list marker (e.g 1,2 etc) and the List item (e.g aaa in our case) should both be center aligned.

Actual Result:
List is not center aligned. the list marker's (e.g 1,2 etc) are left aligned and the List item's (e.g aaa in our case) are center aligned. 


</HTML>
Comment 1 Alexey Proskuryakov 2011-04-05 11:42:00 PDT
Still an issue with r82895.
Comment 2 sheldon.seo 2011-04-05 18:58:56 PDT
(In reply to comment #1)
> Still an issue with r82895.

I tested this code like below and it made same result.

-- No.1 --
<html>
<head>
<style type="text/css">
li {text-align:center;}
</style>
</head>

<body>
  <OL>
    <LI>aaaa</LI>
    <LI>bbbb</LI>
  </OL>
</body>

</html>

-- No. 2 --
<html>
<head>
<style type="text/css">
OL {text-align:center;}
</style>
</head>

<body>
  <OL>
    <LI>aaaa</LI>
    <LI>bbbb</LI>
  </OL>
</body>

</html>
Comment 3 Manuel Rego Casasnovas 2016-12-27 08:30:52 PST
WebKit behavior is right as discussed on this Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=25291

You can check it with the following test from W3C csswg-test repo:
http://test.csswg.org/suites/css2.1/nightly-unstable/html4/list-style-position-018.htm

Only browser behaving different is Firefox, so it seems pretty clear that the bug is on their side.