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)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
Future
People
(Reporter: cplarosa, Assigned: mrbkap)
References
()
Details
(Keywords: compat, testcase)
Attachments
(3 files)
827 bytes,
text/html
|
Details | |
432 bytes,
text/html
|
Details | |
1.41 KB,
patch
|
bzbarsky
:
review+
brendan
:
superreview+
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
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>
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
Reporter | ||
Comment 6•24 years ago
|
||
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).
Summary: {list} List numbers and bullets ignore FONT changes → [LIST] List numbers and bullets ignore FONT changes
Comment 9•23 years ago
|
||
Anybody looking at this one? Been over a year now. It's an annoying ugly little glitch of a bug. Thanks, Jubal
Comment 10•23 years ago
|
||
Build 2001062420 win32 on win98 Based on the testcase this looks fixed to me
Comment 11•23 years ago
|
||
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.
Comment 12•23 years ago
|
||
Ooops... sorry I'm still seeing the bug.
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
The attached testcase attachment 40039 [details] uses innerHTML to show the actual
document structure used by Mozilla.
Comment 16•23 years ago
|
||
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
Comment 17•23 years ago
|
||
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.
Comment 18•23 years ago
|
||
*** Bug 117572 has been marked as a duplicate of this bug. ***
Comment 19•22 years ago
|
||
*** Bug 156202 has been marked as a duplicate of this bug. ***
Comment 20•22 years ago
|
||
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?
Comment 21•22 years ago
|
||
This bug only shows up where there is no space between the <UL> and <LI> markups. See the attached html as an example.
Assignee | ||
Comment 22•19 years ago
|
||
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 | ||
Updated•19 years ago
|
Assignee: parser → mrbkap
Assignee | ||
Comment 23•19 years ago
|
||
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.
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•19 years ago
|
Attachment #183741 -
Flags: review?(bzbarsky)
Comment 24•19 years ago
|
||
Comment on attachment 183741 [details] [diff] [review] patch v1 r=bzbarsky
Attachment #183741 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #183741 -
Flags: superreview?(brendan)
Comment 25•19 years ago
|
||
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 26•19 years ago
|
||
Comment on attachment 183741 [details] [diff] [review] patch v1 a=asa
Attachment #183741 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 27•19 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 28•19 years ago
|
||
*** Bug 191949 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•