Closed
Bug 501482
Opened 16 years ago
Closed 4 years ago
CSS text-shadow applied to body tag and not text elements
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jacklukic, Unassigned)
References
()
Details
Attachments
(1 file)
|
632 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
When CSS Text shadow rules are placed in body tag it applies to actual body element instead of text elements, and causes layout to break.
This is especially dangerous since a lot of old sites fixed Safari anti-aliasing by setting near transparent text-shadow property to all text, on body tag.
Reproducible: Always
Steps to Reproduce:
For example
body {
width: 100%;
height: 100%;
text-shadow: 1px 1px 1px #FFFFFF
}
causes horizontal scrollbars.
Actual Results:
The body tag gets a shadow causing scrollbars to appear.
Expected Results:
It should apply the rule to all text inside of body, and not the body element itself.
| Reporter | ||
Updated•16 years ago
|
Updated•16 years ago
|
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: general → style-system
Version: unspecified → 1.9.1 Branch
| Reporter | ||
Comment 1•16 years ago
|
||
This bug also applies to text-shadow rules attached to HTML tag.
Comment 2•16 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2a1pre) Gecko/20090630 Minefield/3.6a1pre
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
This is fixed on trunk but broken on branch
| Reporter | ||
Updated•16 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 4•16 years ago
|
||
marked as a duplicate but im not positive its same bug exactly..
Comment 5•16 years ago
|
||
It isn't the same bug, that one is still broken on trunk while this one is fixed. Also note, in all of those testcases there's text in the page while in this one there isn't any.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
| Reporter | ||
Comment 6•16 years ago
|
||
Thanks Nochum i removed duplicate notice.
Forgive my unfimiliarity, but are you saying its considered fixed, because its fixed in 1.9.2a1pre, or is this still open?
Comment 7•16 years ago
|
||
This bug was file against 1.9.1 so I left it open, this is fixed in 1.9.2a1pre in my testing. I'm not sure a fix would be backported to branch at this point, but feel free to nominate it for a branch release (wanted-1.9.1.x flag).
| Reporter | ||
Updated•16 years ago
|
Flags: blocking1.9.1.1?
Comment 8•16 years ago
|
||
Opera 10b and WebKit/Safari4 also display a horizontal scrollbar with the testcase.
I think that the nightly Minefield builds may be buggy (and if the testcase has actual content, it does show a horizontal scrollbar).
Fwiw, the behaviour changed between the following changesets:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=28aa23105a9e&tochange=5fe89f2c22f0
Bug 495385 ?
| Reporter | ||
Comment 9•16 years ago
|
||
new usecase, shows scrollbars in FF3.5, no scrollbars in webkit/safari, ie7+(barf), or F3.0.x
Breaks sites with text shadow on body and relative widths.
Comment 10•16 years ago
|
||
We don't typically block on unconfirmed bugs... Even if we did, this issue isn't a critical one that we'd block a maintenance release on, though we'll consider a patch should one appear.
Flags: blocking1.9.1.1?
Comment 11•4 years ago
|
||
Marking this as Resolved > Worksforme since the issue is no longer reproducible on the latest versions of Firefox Nightly 96.0a1 (2021-11-01), beta 94.0 or release 93.0 on Windows 10.
If anyone is still able to reproduce the issue please re-open it or file a new one.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago → 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•