Closed Bug 96031 Opened 23 years ago Closed 23 years ago

Font size not applied to <li> element in some cases

Categories

(Core :: DOM: HTML Parser, defect, P1)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: Erik.Bruchez, Assigned: harishd)

References

Details

(Keywords: compat, topembed, Whiteboard: [fix on the trunk and branch])

Attachments

(2 files)

In the following example, the number displayed automatically by <li> doesn't
have the right font size (it keeps its default size):

<ol>
<font size="+1">
  <li>This is line 1
</font>
</ol>

If you write:

<font size="+1">
<ol>
  <li>This is line 1
</ol>
</font>

Then the size is what you would expect. Both cases work fine with Netscape 4 and IE.
The list marker doesn't inherit (and never inherits) the font size from a HTML 
size attribute, although it does inherit the font-size from a style attribute.

I'm going to attach a testcase.  Note that what I'm seeing is slightly different 
from what the reporter described above. 

Reassigned to Layout/attinasi.

Assignee: pierre → attinasi
Status: UNCONFIRMED → NEW
Component: Style System → Layout
Ever confirmed: true
Attached file testcase
Yes, for some reason the second case doesn't work either. I would have sworn
that it worked when I posted the bug.
This has nothing to do with inheritance, it's probably just that the parser
"fixes up" the markup differently. Sending to Parser to see what the content
model is doing in each case.
Component: Layout → Parser
Keywords: compat
really sending...
Assignee: attinasi → harishd
QA Contact: ian → bsharma
I think this needs topembed consideration. Adding topembed keyword.
Status: NEW → ASSIGNED
Keywords: topembed
Target Milestone: --- → mozilla0.9.4
Priority: -- → P1
Depends on: 97330
However, with the above patch the following sample renders differently. That is,
in IE the bullet ( unordered list ) seems to inherit all the properties ( I
think ) except "size" ( will open up a bug on this ) and LI seems to behave as
inline ( ref. bug 97330 ).

<ul>
<font size="+5" color="red">
<li>This is </li>line 1
</font>
</ul>
Depends on: 97351
Whiteboard: [fix in hand]
r=heikki

I think this should not be checked into the embedding branch unless it goes
together with the fixes to the regressions you noted. I'd like you to also check
the wrmb bugs in Bugscape to see if you can find any sites that have this problem. 
sr=vidur
FYI: I ran browser buster and found the following sites to have <font><li>
combination:
www.tomshardware.com   - no change in rendering
www.planetquake.com    - renders like IE ( watch for the bullets )
www.slashdot.org       - no change in rendering
cnnfn.cnn.com          - About three bullets render like IE rest unchanged (
refer to the testcase in bug 97351 )



Whiteboard: [fix in hand] → [fix in hand][Need a=]
a=asa on behalf of drivers.
Comment on attachment 47350 [details] [diff] [review]
Patch v1.1 [ Made LI's parent model to be flow ]

trying the 'has-approval' status for patches.
Attachment #47350 - Flags: approval+
Whiteboard: [fix in hand][Need a=] → [fix on the trunk]
Blocks: 22899
the patch checked in for this one fixed bug 22899! yay!
Landed fix on 0.9.2 branch. Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: [fix on the trunk] → [fix on the trunk and branch]
QA Contact: bsharma → moied
Verfied fixed on turnk Build ID 20011101
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: