Closed
Bug 268326
Opened 20 years ago
Closed 20 years ago
Bad text align when aligning text to right with a space as last character.
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: chaostheory, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Creating a margin:0px body page, align the contente of a DIV to the right, and then open a SPAN tag with some text and ending with a SPACE, the text is aligned to the right only to the last non-space char, the SPACE that ends the SPAN tag is rendered "outside" the margin, creating a forced scrollbar. This doesn't happen if the space is a  . Reproducible: Always Steps to Reproduce: 1.Create a normal html page. 2.put a margin:0px css in the body 3.the create this situation: <div style="text-align:right;"><span>bug </span></div> Actual Results: The "bug" word is aligned to the right, but it doesn't align the SPACE, the space is rendered outside of the align, so firefox "force" the scroll bar to make it possible to view the space. Expected Results: Align the text inside the <span> tag to the right, counting the very last char of that text.
Comment 1•20 years ago
|
||
I reproduced this on a branch build, but it WFM on the trunk: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a5) Gecko/20041031 Firefox/0.9.1+ Can't find the duplicate, so WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: General → Layout
Product: Firefox → Browser
Resolution: --- → WORKSFORME
Version: unspecified → 1.7 Branch
| Reporter | ||
Comment 2•20 years ago
|
||
Well, Firefox 1.0 It's out, and the same thing happens. One space alone shouldn't be ignored, right? Well, in this align thing the space is ignored, and then taken in account. But there's also other situations where the SPACE is ignored. <p style="border: thin black solid; width:200px;"></p> OR <p style="border: thin black solid; width:200px;"> </p> Gives the same thing, a solid 200px line (like a 2px <hr>) <p style="border: thin black solid; width:200px;"> </p> Outputs a textline with a border and a space on it, as it should also happen (IMO) with <p> </p> I've updated the URL with this examples. And notices another thing, that SPACE that isn't aligned, gets the text-size of the parent DIV, but it doesn't get the Background-Color.
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Comment 3•20 years ago
|
||
Firefox 1.0 is off the 1.7 branch. Please test trunk builds for layout bugs, since that's where layout bugs would be fixed. Layout work on branch is done except for crash fixes, basically. This worksforme on trunk, and marking so.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•