Closed Bug 38174 Opened 24 years ago Closed 19 years ago

[LIST] List numbers and bullets ignore FONT changes

Categories

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

defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: cplarosa, Assigned: mrbkap)

References

()

Details

(Keywords: compat, testcase)

Attachments

(3 files)

When a list (<OL> or <UL>) is enclosed within a <FONT> element, the numbers or 
bullets in the list do not use the <FONT> attributes.  The contents of the list 
does use the <FONT> attributes, however.

The numbers in this HTML example are displayed with black normal size font 
instead of white large size font:

<FONT COLOR=WHITE SIZE=+3>
<OL>
<LI>One
<LI>Two
<LI>Three
</OL>
</FONT>
Reassigning to buster - Triaging Troy's bug list
Assignee: troy → buster
Confirming bug.  This could be a residual style issue.  (Is there really a need
for residual style to be used in this case?  It ought to work if layout were
given the content model as written, even though it's invalid...)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → minor
Status: NEW → ASSIGNED
Summary: List numbers and bullets ignore FONT changes → {list} List numbers and bullets ignore FONT changes
Target Milestone: --- → M19
I'd have to look, but I'll bet the style context is correct, and we're just 
ignoring it.  Marking it {list} and pushing it down on my priority list.
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M19 → M21
This bug has been marked "future" because the original netscape engineer working 
on this is over-burdened. If you feel this is an error, that you or another 
known resource will be working on this bug,or if it blocks your work in some way 
-- please attach your concern to the bug for reconsideration. 
Target Milestone: M21 → Future
In my opinion, this bug should be corrected before the final release of 
Netscape 5.0.  The following browsers all change the font of the numbers in an 
ordered list:  Netscape Navigator 3.x, Netscape Communicator 4.x, Internet 
Explorer 4.x, and Internet Explorer 5.x, Opera 3.60.  These are the only 
browsers I have tested -- there are probably more with this behavior.  Breaking 
the well-established behaviors of existing browsers may slow public acceptance 
of Netscape 5.0.  Since many web pages use custom background and font color 
schemes, I think this feature is important since it's the only way to change 
the color of the numbers in a list (note:  I haven't tested CSS behavior).
*** Bug 42127 has been marked as a duplicate of this bug. ***
Summary: {list} List numbers and bullets ignore FONT changes → [LIST] List numbers and bullets ignore FONT changes
*** Bug 60929 has been marked as a duplicate of this bug. ***
Anybody looking at this one? Been over a year now.

It's an annoying ugly little glitch of a bug.

Thanks,

Jubal
Build 2001062420 win32 on win98
Based on the testcase this looks fixed to me
Linux build 2001062508

This isn't fixed for the Linux build at least. I still see black normal size
numbers and bullets instead of larger-size white numbers and bullets.
Ooops... sorry I'm still seeing the bug.
Setting OS and Platform to ALL
OS: Windows 95 → All
Hardware: PC → All
The attached testcase attachment 40039 [details] uses innerHTML to show the actual
document structure used by Mozilla.
Keywords: testcase
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
OK, I see the problem here:
FONT is a text level element, and must not contain block level elements, like
P or UL. So the mozilla code fixes this up by applying the font tags to the
LI one by one, and misses the bullets. Bad html gives bad foo type of bug.
Keywords: compat
*** Bug 117572 has been marked as a duplicate of this bug. ***
*** Bug 156202 has been marked as a duplicate of this bug. ***
I have noticed that in some cases the bullets will observe the font color.  I
have seen a case where the font color is observed after the first <li> on a new
line.  Quite odd behavior.  The first bullet was black, and all subsequent
bullets where white.  When I put the <ul> and <li> on seperate lines, then all
bullets were white.

Perhaps some deeper stranger bug is at play here?
This bug only shows up where there is no space between the <UL> and <LI>
markups.  See the attached html as an example.
Moving this to HTML parser and taking (since, as pointed out in comment 2) this
is in fact a residual style problem.
Assignee: attinasi → parser
Component: Layout → HTML: Parser
QA Contact: chrispetersen → mrbkap
Assignee: parser → mrbkap
Attached patch patch v1Splinter Review
The problem here is that even though <li> is a container (and not an RS tag),
we need to open transient styles around it so that the bullet also has the
styles applied to it.

Note that I feel safe special-casing <li> here because <li> is the only
container that implicitly has leaf content in it. If it's felt to be needed, I
could make this a special property in the element table (kHasLeaf or something)
and check that instead.
Status: NEW → ASSIGNED
Attachment #183741 - Flags: review?(bzbarsky)
Comment on attachment 183741 [details] [diff] [review]
patch v1

r=bzbarsky
Attachment #183741 - Flags: review?(bzbarsky) → review+
Attachment #183741 - Flags: superreview?(brendan)
Comment on attachment 183741 [details] [diff] [review]
patch v1

Sorry to nit-pick, but wouldn't li_tag be more consistent with rs_tag as a
name?  Nominating for 1.8b2 but I'll let some other driver approve.

/be
Attachment #183741 - Flags: superreview?(brendan)
Attachment #183741 - Flags: superreview+
Attachment #183741 - Flags: approval1.8b2?
Comment on attachment 183741 [details] [diff] [review]
patch v1

a=asa
Attachment #183741 - Flags: approval1.8b2? → approval1.8b2+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
*** Bug 191949 has been marked as a duplicate of this bug. ***
Depends on: 295596
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: