Closed
Bug 86276
Opened 24 years ago
Closed 23 years ago
split to containing block is not working for XML [INLINE] {ib} (XML blocks do not wrap text)
Categories
(Core :: Layout, defect, P2)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla0.9.8
People
(Reporter: ian, Assigned: waterson)
References
()
Details
(Keywords: css1, regression, testcase, Whiteboard: [Hixie-P1][Hixie-1.0])
Attachments
(5 files, 1 obsolete file)
1.92 KB,
text/xml
|
Details | |
549 bytes,
text/css
|
Details | |
150 bytes,
text/xml
|
Details | |
712 bytes,
text/xml
|
Details | |
488 bytes,
patch
|
waterson
:
review+
waterson
:
superreview+
|
Details | Diff | Splinter Review |
STEPS TO REPRODUCE
Place a block inside an inline.
For example, see http://www.hixie.ch/tests/adhoc/css/box/ib/001-simple-1.xml
ACTUAL RESULTS
Block sits on the line.
EXPECTED RESULTS
Block breaks the line.
OCCURS WITH
Unknown XML content. Not XHTML!
TESTCASES
http://www.hixie.ch/tests/adhoc/css/box/ib/001.xml (XML case, fails)
http://www.hixie.ch/tests/adhoc/css/box/ib/002.xml (XHTML case, passes)
http://www.hixie.ch/tests/adhoc/css/box/ib/001-simple-1.xml
http://www.hixie.ch/tests/adhoc/css/box/ib/001-simple-2.xml
Reporter | ||
Updated•24 years ago
|
Whiteboard: [Hixie-P3]
*** Bug 88887 has been marked as a duplicate of this bug. ***
Ok, this one might be the dupe of bug 88887. The full testcase there is
http://www.iwaruna.com/learn/xml/com_err.xml
I am not 100% sure about that, though. For example, I identified that a
paragraph was not wrapped if it contained "margin-left: 20px" property & value.
In any case, both the above testcase and the testcases mentioned earlier in this
bug broke between builds 06-08-09 (ok) and 06-09-10 (not ok) (commercial builds).
This Bonsai query shows checkins to Mozilla tree between 06-08-04 and 06-09-14
(adding some margins to both ends):
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyAll&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=06%2F08%2F2001+04%3A00%3A00&maxdate=06%2F09%2F2001+14%3A00%3A00&cvsroot=%2Fcvsroot
Reporter | ||
Updated•24 years ago
|
Summary: split to containing block is not working for XML [INLINE] {ib} → split to containing block is not working for XML [INLINE] {ib} (XML blocks do not wrap text)
Whiteboard: [Hixie-P3] → [Hixie-P1]
I am seeing this bug on Linux as well as Win2K. Is there any way this can get
bumped up in priority for 0.9.4? It's a pretty serious regression in the
display of XML
Reporter | ||
Updated•23 years ago
|
Whiteboard: [Hixie-P1] → [Hixie-P1][Hixie-1.0]
Comment 5•23 years ago
|
||
Comment 6•23 years ago
|
||
Comment 7•23 years ago
|
||
The attached files 12-1.xml and recipe.css also show the "missing line-break
error" in blocks. They are taken from the book "XML In A Nutshell" of O'Reilly.
(In fact i made a little change in recipe.css to make the bullets show).
This example worked in Netscape 4.7x, it works in Opera 5.05 and of course it
doesn't work at all in Internet Explorer 5.5.
If NS 4.7 does something with the example it is by pure accident - NS 4.7 does
not support XML.
*** Bug 113755 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.9
Assignee | ||
Comment 10•23 years ago
|
||
A minimal test case, which happens to work. Hmm.
Assignee | ||
Comment 11•23 years ago
|
||
The above test case works: it's using <span> and <div> directly, instead of
<block> and <inline>.
Hixie, could you revisit your test case? I think the issue may be with applying
the namespace to the <block> and <inline> elements. I don't see any namespace
declarations in your <style> block: could that be the problem?
The namespaces in Hixie's test are fine -- and the styles clearly apply, as
shown by the colors. Also have a look at the bugs duped against this one.
Assignee | ||
Comment 13•23 years ago
|
||
Okay, never mind. Looks like namespaces are applying just fine.
Assignee | ||
Comment 14•23 years ago
|
||
The anonymous block frame created in nsCSSFrameConstructor::ConstructInline has
an incorrect display type of `inline'. Trying to figure out why.
Assignee | ||
Comment 15•23 years ago
|
||
It looks like we're only applying the :-moz-anonymous-block pseudo in the HTML
namespace. To fix these test cases, we'll need it to apply in _all_ namespaces.
Will this have negative performance ramifications?
Assignee | ||
Comment 16•23 years ago
|
||
(Do we also need to fix the `:cell-content' pseudo?)
Comment on attachment 65170 [details] [diff] [review]
fix: -moz-anonymous-block must apply in all namespaces
doh! r=dbaron
I'm not sure how the others are used.
Attachment #65170 -
Flags: review+
Assignee | ||
Comment 18•23 years ago
|
||
Pulling in since the fix is so trivial.
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: mozilla0.9.9 → mozilla0.9.8
Assignee | ||
Comment 19•23 years ago
|
||
marc, could you sr=? thanks!
Comment 20•23 years ago
|
||
Comment on attachment 65170 [details] [diff] [review]
fix: -moz-anonymous-block must apply in all namespaces
super! sr=attinasi
BTW: why not *|*:cell-content too?
Attachment #65170 -
Flags: superreview+
r=dbaron on changing :cell-content as well.
Assignee | ||
Comment 22•23 years ago
|
||
Yeah, I'll change both.
Assignee | ||
Comment 23•23 years ago
|
||
Attachment #65170 -
Attachment is obsolete: true
Assignee | ||
Comment 24•23 years ago
|
||
Comment on attachment 65287 [details] [diff] [review]
add namespace qualification to :cell-content, as well.
Assuming r=dbaron and sr=attinasi still apply based on comments above.
Attachment #65287 -
Flags: superreview+
Attachment #65287 -
Flags: review+
Assignee | ||
Comment 26•23 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 97982 has been marked as a duplicate of this bug. ***
Comment 28•23 years ago
|
||
Is this actually fixed? If I download the original testcase (the recipe one)
and its corresponding CSS file, it still doesn't wrap correctly.
I'm using Build ID: 2002011803 on Linux
Comment 29•23 years ago
|
||
I hate to be a pest about this, but the original problem in this bug report of
not wrapping XML still exists. At least, it's still broken for me using Linux
build 2002020403 from the 0.9.8 branch. See
http://bunker.ece.rice.edu/users/brentmh/test.xml Can we reopen this bug, or
should I submit a new one?
Could you file a new bug?
Comment 31•23 years ago
|
||
Done. The new one is Bug 123355
You need to log in
before you can comment on or make changes to this bug.
Description
•