Open
Bug 766020
Opened 13 years ago
Updated 3 years ago
Inline-block element within ol causes all li numbers inside to be zero
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
NEW
People
(Reporter: jillyburton, Unassigned)
Details
(Keywords: testcase, Whiteboard: DUPEME)
Attachments
(1 file)
|
1.48 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0
Build ID: 20120605113340
Steps to reproduce:
I was programming a javascript-powered quiz for my site. The design of the page required the previous button, a list containing questions, and the next button to be all in the same row, with the quiz container and question list both at widths set by their contents. That meant the question list (an ordered list) had to be display: inline-block.
I tried making a simple test page with just an <ol> tag with a <div style="display: inline-block"> around its list items, and I was able to see the exact same effect.
Test page: http://jsfiddle.net/7qvW5/
Actual results:
All the list items inside the inline-block div were marked "0." in place of their proper numbers. This did not happen when the inline-block div was outside the list, and CSS generated-content counters are not affected by this (as you can see if you go to the test page).
Expected results:
The numbers in the list should have proceeded in a normal 1-2-3 fashion, just as they would have inside a <div style="display: block">.
| Reporter | ||
Comment 1•13 years ago
|
||
Whoops, that's a version of the test page from before I fixed my CSS error. This bug does NOT screw up counters; that was me. =_=
Please go to http://jsfiddle.net/7qvW5/11/ instead!
Comment 2•13 years ago
|
||
Reproduced against Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0 ID:20120627030527.
Last good nightly: 2007-01-27
First bad nightly: 2007-01-28
Bonsai Range: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-01-27+03%3A00&maxdate=2007-01-28+03%3A00&cvsroot=%2Fcvsroot
likely introduced by Bug 9458.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Block and Inline
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: untriaged → layout.block-and-inline
Version: 14 Branch → Trunk
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Yep, we only propagate HTML list numbering through block kids. It's not implemented in terms of CSS counters at the moment.
Whiteboard: DUPEME
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•