Closed
Bug 441703
Opened 16 years ago
Closed 16 years ago
direction attribute of marquee should be case-insensitive (for selector matching)
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1a1
People
(Reporter: thundervamp9, Assigned: martijn.martijn)
References
()
Details
(Keywords: regression, testcase, verified1.9.0.2)
Attachments
(2 files, 1 obsolete file)
1014 bytes,
patch
|
martijn.martijn
:
review+
martijn.martijn
:
superreview+
samuel.sidler+old
:
approval1.9.0.2+
|
Details | Diff | Splinter Review |
3.00 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 When viewing my website, the text in the dedication box which scrolls up is not in the box as it's supposed to be. Instead it is higher up on the page, scrolling over other text. This only occurs in Firefox 3, not Firefox 2. Example: http://www.retroradionetwork.com/thoms/RR-FF3.png Reproducible: Always Steps to Reproduce: 1. Start Firefox 3 2. Navigate to http://www.renegaderetro.com Actual Results: When the page loads, the dedication text is scrolling near the top of the page, on top of a menu rather than in its box. Expected Results: The text should be scrolling within its block. Example: http://www.retroradionetwork.com/thoms/RR-Opera.png The software should display the scrolling text in the block that is supposed to contain it. I have tested the site in Firefox 3, Firefox 2, Opera 9.50, Opera 9.24, Internet Explorer 7 and Internet Explorer 6. I have tried it on 3 different PC's. Firefox 3 is the only browser which displays this behavior, and does it on all PC's. It occurs in both Windows and Linux. I am enclosing the code of the dedication block in case that is the problem/the problem can be found using it. [code] <?php if (eregi("DedicationScroller",$_SERVER['PHP_SELF'])) { Header("Location: index.php"); die(); } include("includes/sam-config.php"); $totalnum = "10"; //The number of dedications to show on the site $SAMdb->open("SELECT songlist.artist, songlist.title, requestlist.name, requestlist.msg FROM songlist, requestlist WHERE requestlist.name != '' and requestlist.songid = songlist.id and requestlist.msg != '' ORDER BY requestlist.t_stamp DESC LIMIT $totalnum"); $myrow = $SAMdb->rows(); reset($myrow); $content .= "<marquee behavior='scroll' direction= 'Up' width= '130' height= '190' scrollAmount= '2' onMouseover='this.scrollAmount=1' onMouseout='this.scrollAmount=2' onMouseDown='this.scrollAmount=0' onMouseUp='this.scrollAmount=1'>\n"; $content .= "<table><tr><td>"; foreach($myrow as $row) { $content .= "<b>Artist:</b><br>"; $content .= $row['artist']; $content .= "<br><br>"; $content .= "<b>Song Played:</b><br>"; $content .= $row['title']; $content .= "<br><br>"; $content .= "<b>Requested by:</b><br>"; $content .= $row['name']; $content .= "<br><br>"; $content .= "<b>Dedication:</b><br>"; $content .= stripslashes($row['msg']); $content .= "<hr>\n"; } $content .= "</td></tr></table>"; $content .= "</marquee>\n"; ?> [/code]
Reporter | ||
Updated•16 years ago
|
Version: unspecified → 3.0 Branch
Reporter | ||
Updated•16 years ago
|
OS: Windows XP → All
Comment 1•16 years ago
|
||
Regression range 1 (no text anymore in Dedication box): http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1184103420&maxdate=1184111159 -> Bug 357614. Regression range 2 (text reappeared but on the wrong place): http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1199875440&maxdate=1199885279 -> Bug 407016.
Blocks: 357614
Component: General → Layout
Keywords: qawanted,
regression
Product: Firefox → Core
QA Contact: general → layout
Version: 3.0 Branch → Trunk
Comment 2•16 years ago
|
||
Given that the whole scrolling object is a marquee, it is more likely to be a regression from bug 407016. Cc'ing Martijn.
Assignee | ||
Comment 3•16 years ago
|
||
Thanks for the regression range. This is indeed a regression from bug 357614. I already wondered about this in bug 425247, which is basically about the same issue. It seems to me that the direction attribute should be added to the list. Or else, I should update the patch in bug 425247 with Up, uP, Down, DOwn, DOWn, dOwn, dOWn, dOWN, doWn, doWN, dowN values (which seems like a bad idea to me).
Attachment #327476 -
Flags: review?(dbaron)
Assignee | ||
Comment 4•16 years ago
|
||
There is a testcase in bug 425247.
Comment on attachment 327476 [details] [diff] [review] patch >Index: layout/style/nsCSSParser.cpp > "type", >+ "direction", > nsnull r+sr=dbaron if you add an additional comment above your added line saying something like: // additional attributes not in HTML4 and then after "direction" have a comment saying "// marquee".
Attachment #327476 -
Flags: review?(dbaron) → review+
Flags: wanted1.9.0.x?
Assignee | ||
Comment 6•16 years ago
|
||
Carrying over r+/sr+
Attachment #327476 -
Attachment is obsolete: true
Attachment #327581 -
Flags: superreview+
Attachment #327581 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Summary: Text scrolling vertically is in the wrong position on the page → direction attribute of marquee should be case-insensitive (for selector matching)
Comment 8•16 years ago
|
||
Pushed in 15871:b9344d23a2fc.
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1a1
Assignee | ||
Comment 9•16 years ago
|
||
Comment on attachment 327581 [details] [diff] [review] updated patch Very safe fix for this regression. This was also noticed in bug 446111 and will likely cause more dupes if it doesn't get fixed.
Attachment #327581 -
Flags: approval1.9.0.2?
I agree that we should take this in 1.9.0.*.
Comment 11•16 years ago
|
||
Can we get a test for this bug?
Flags: wanted1.9.0.x?
Flags: wanted1.9.0.x+
Flags: in-testsuite?
Updated•16 years ago
|
Whiteboard: [needs test]
Assignee | ||
Comment 12•16 years ago
|
||
Sorry for the delay, there was a reftest attached to the patch in the duped bug 425247, but maybe that's the wrong test for this? In that case, I guess direction should be added to http://mxr.mozilla.org/mozilla-central/source/layout/style/test/test_bug357614.html?raw=1
Comment 13•16 years ago
|
||
Martijn, it's not clear to me if that's the right test or not. dbaron, thoughts?
Either or both is ok.
Updated•16 years ago
|
Whiteboard: [needs test]
Comment 15•16 years ago
|
||
Comment on attachment 327581 [details] [diff] [review] updated patch Approved for 1.9.0.2. Please land in CVS. a=ss Please be sure to land the reftest as well (both on mozilla-central and on 1.9).
Attachment #327581 -
Flags: approval1.9.0.2? → approval1.9.0.2+
Assignee | ||
Comment 16•16 years ago
|
||
Assignee | ||
Comment 17•16 years ago
|
||
It turns out I don't have an hg account yet, so I can't check these reftests in trunk yet. Maybe someone else could check them into trunk? I need them to be checked into trunk, so I can check the patch and the reftests into the 1.9 branch.
Assignee | ||
Comment 18•16 years ago
|
||
Ok, I actually do have a hg account, I didn't have it correctly set up. But I do now, and I checked in the reftests on trunk now: http://hg.mozilla.org/index.cgi/mozilla-central/rev/8410e5981323
Flags: in-testsuite? → in-testsuite+
Assignee | ||
Comment 19•16 years ago
|
||
RCS file: /cvsroot/mozilla/layout/reftests/bugs/425247-1.html,v done Checking in layout/reftests/bugs/425247-1.html; /cvsroot/mozilla/layout/reftests/bugs/425247-1.html,v <-- 425247-1.html initial revision: 1.1 done RCS file: /cvsroot/mozilla/layout/reftests/bugs/425247-1-ref.html,v done Checking in layout/reftests/bugs/425247-1-ref.html; /cvsroot/mozilla/layout/reftests/bugs/425247-1-ref.html,v <-- 425247-1-ref.html initial revision: 1.1 done RCS file: /cvsroot/mozilla/layout/reftests/bugs/425247-2.html,v done Checking in layout/reftests/bugs/425247-2.html; /cvsroot/mozilla/layout/reftests/bugs/425247-2.html,v <-- 425247-2.html initial revision: 1.1 done RCS file: /cvsroot/mozilla/layout/reftests/bugs/425247-2-ref.html,v done Checking in layout/reftests/bugs/425247-2-ref.html; /cvsroot/mozilla/layout/reftests/bugs/425247-2-ref.html,v <-- 425247-2-ref.html initial revision: 1.1 done Checking in layout/reftests/bugs/reftest.list; /cvsroot/mozilla/layout/reftests/bugs/reftest.list,v <-- reftest.list new revision: 1.460; previous revision: 1.459 done Checking in layout/style/nsCSSParser.cpp; /cvsroot/mozilla/layout/style/nsCSSParser.cpp,v <-- nsCSSParser.cpp new revision: 3.387; previous revision: 3.386 done Checked into the 1.9.0.x tree.
Keywords: fixed1.9.0.2
Assignee | ||
Comment 20•16 years ago
|
||
To verify, there was a testcase attached in the duped bug 425247: https://bugzilla.mozilla.org/attachment.cgi?id=311857
Keywords: testcase
Comment 21•16 years ago
|
||
Verified for 1.9.0.2 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.2) Gecko/2008090212 Firefox/3.0.2.
Keywords: fixed1.9.0.2 → verified1.9.0.2
You need to log in
before you can comment on or make changes to this bug.
Description
•