Closed
Bug 286388
Opened 20 years ago
Closed 20 years ago
cursor:url() overwrites child elements cursor value (cascade doesn't work)
Categories
(Core :: CSS Parsing and Computation, defect, P1)
Core
CSS Parsing and Computation
Tracking
()
VERIFIED
FIXED
mozilla1.8beta2
People
(Reporter: Peter6, Assigned: dbaron)
References
Details
(Keywords: testcase, Whiteboard: [patch])
Attachments
(3 files, 1 obsolete file)
|
100 bytes,
image/png
|
Details | |
|
872 bytes,
text/html
|
Details | |
|
1.61 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050315
Firefox/1.0+
I know the summary is wrong but I don't know the proper wording.
repro:
1.Open testcase
2.Case 1 shows normal behaviour, the cursor in the red box is pointer, in the
green box is wait
3.Case 2 shows wrong behaviour, the cursor in the red box is url(),pointer , in
the green box should be wait but url(),pointer is displayed
expected:
the cursor url() to behave the same as default cursors
( bug 38447 cursor:url() implementation )
testcase follows
| Reporter | ||
Comment 1•20 years ago
|
||
| Reporter | ||
Comment 2•20 years ago
|
||
Updated•20 years ago
|
Keywords: regression,
testcase
Updated•20 years ago
|
Keywords: regression
Summary: cursor:url() breaks CSS rule → cursor:url() overwrites child elements cursor value (cascade doesn't work)
Comment 3•20 years ago
|
||
This should probably be marked as a regression, otherwise I think (contrary to
your suggestion on the forum) that your summary is ok.
Just in case anyone missed it though... cursor:url() properties are being
inherited by child elements, even if they have an overriding value set. This
should not be the case.
Comment 4•20 years ago
|
||
(In reply to comment #3)
> This should probably be marked as a regression
why? this never worked correctly.
| Assignee | ||
Comment 5•20 years ago
|
||
This will probably fix it, but the url() support doesn't work for me (GTK2), at
least based on the testcase in this bug, so I can't tell for sure. Could
somebody test?
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8beta2
Comment 6•20 years ago
|
||
yep, the patch does seem to work.
it seems this line, a bit down, can be removed then:
if (ui->mCursorArray.Count() == 0) {
| Assignee | ||
Comment 7•20 years ago
|
||
Attachment #177676 -
Attachment is obsolete: true
Attachment #177684 -
Flags: superreview?(bzbarsky)
Attachment #177684 -
Flags: review?(bzbarsky)
| Assignee | ||
Comment 8•20 years ago
|
||
I was suspicious of that code when I reviewed it, and I should have thought
about it more carefully. It's also completely broken in the non-null aStartData
with 'inherit' case.
Comment 9•20 years ago
|
||
sorry about this bug :( thanks for fixing it!
OS: Windows 2000 → All
Hardware: PC → All
Comment 10•20 years ago
|
||
I hereby request for blocking-aviary1.1 and blocking1.8b2 flags, the fix seems
important.
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Comment 11•20 years ago
|
||
Comment on attachment 177684 [details] [diff] [review]
patch
r+sr=bzbarsky
Attachment #177684 -
Flags: superreview?(bzbarsky)
Attachment #177684 -
Flags: superreview+
Attachment #177684 -
Flags: review?(bzbarsky)
Attachment #177684 -
Flags: review+
| Assignee | ||
Comment 12•20 years ago
|
||
Fix checked in to trunk, 2005-03-16 20:38 -0800.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Resolution: --- → FIXED
| Assignee | ||
Comment 13•20 years ago
|
||
FWIW, it's not working for me because I hit this early return in
widget/src/gtk2/nsWindow.cpp's SetCursor(imgIContainer*):
nsCOMPtr<nsIGdkPixbufImage> pixImg(do_GetInterface(frame));
if (!pixImg)
return NS_ERROR_NOT_AVAILABLE;
| Assignee | ||
Comment 14•20 years ago
|
||
Please respond to that comment in bug 38447 rather than here.
You need to log in
before you can comment on or make changes to this bug.
Description
•