Closed
Bug 78147
Opened 24 years ago
Closed 21 years ago
p:first-letter causes bad line break after first letter
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
mozilla1.2alpha
People
(Reporter: harvested_from_mozilla4, Assigned: attinasi)
References
()
Details
(Keywords: css1, testcase, Whiteboard: [CSS1-2.4])
Attachments
(1 file)
435 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win95; en-US; rv:0.8.1+) Gecko/20010426
BuildID: 2001042604
In the sample document, a style is set for p:first-letter. It works well,
except that paragraph's content begins with an image instead of an actual
letter. In this paragraph, the line break takes place after the first letter of
a word, instead of between words.
Reproducible: Always
Steps to Reproduce:
When you load the document, you may need to shrink and resize the page to get
the effect.
Paragraph 1, whose content begins with an image, will often break after the
first letter of a word instead of between words. This ends up leaving the first
letter of the word on one line and puts the rest of the word on the next line.
Paragraph 2, whose content includes only text, always breaks correctly between
words.
Comment 1•24 years ago
|
||
Confirming.
Over to style system...
Note that the line break also appears in the second paragraph. It just isn't
visible in your testcase, because you can't shrink the windows enough to see
this.
I'll attach a new testcase.
I'd say this is an edge-case, so setting severity to minor.
Assignee: clayton → pierre
Severity: normal → minor
Status: UNCONFIRMED → NEW
Component: HTML Element → Style System
Ever confirmed: true
QA Contact: bsharma → ian
Summary: p:first-letter causes bad line break if <p> begins with an image → p:first-letter causes bad line break after first letter
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
I see this in the testcase on Linux. The spec doesn't actually explicitly say
whether the resulting word is to be kept with the first-letter or not, but says
that if the first-lettter has it's |float| property set to |none| then it is
similar to inline-level elements.
I checked with Opera 5b8 on Linux, and the word remains together on the one line
when Mozilla breaks after the first-letter. Unless anyone can give a good reason
why we are breaking here, I'd suggest we fix it.
CC Glazman who knows selector stuff, no idea if he can deal with it though. This
could have a minor bearing on Composer?
Confirming on win2k.
:first-letter modifies of course the rendering of the first char and of the block
but it should not have any impact on the hyphenation algorithm itself. Even if the
block lines are modified by the application of a :first-letter rule, a word cut
after the first char is a bug, in western languages, if this char is not an hyphen
or equivalent.
Comment 5•24 years ago
|
||
Hyphenation problem: moved to Layout.
Assignee: pierre → karnaze
Component: Style System → Layout
QA Contact: ian → petersen
Comment 6•24 years ago
|
||
I meant Layout/Marc, not Layout/Chris: reassigned to attinasi...
Assignee: karnaze → attinasi
Assignee | ||
Comment 8•24 years ago
|
||
Moving to mozilla1.0
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Updated•24 years ago
|
Target Milestone: mozilla1.0 → mozilla1.2
Updated•23 years ago
|
Whiteboard: [CSS1-2.4]
Comment 9•21 years ago
|
||
*** This bug has been marked as a duplicate of 2418 ***
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•