Element.scrollIntoView does not follow spec handling "null", "{}" input arguments
Categories
(SeaMonkey :: General, defect, P3)
Tracking
(seamonkey2.49esr wontfix, seamonkey2.53 fixed, seamonkey2.57esr affected)
People
(Reporter: bblack, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: SM2.53.2)
User Story
+++ This bug was initially created as a clone of Bug #1389274 +++
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Steps to reproduce:
See spec test result here:
http://wpt.fyi/cssom-view/scrollIntoView-empty-args.html
Actual results:
The scroll goes to "nearest" or "end". I am not sure but either way it is incorrect.
Expected results:
In particular the tests fail when input is either "null" or {}. In this case according to the spec [1] the method should use default values in ScrollIntoViewOptions which is "center".
dictionary ScrollIntoViewOptions : ScrollOptions {
ScrollLogicalPosition block = "center";
ScrollLogicalPosition inline = "center";
};
[1] https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions
Comment 2•6 years ago
|
||
Please don't play with bugzilla? Use the dev instance for that.
Comment 3•6 years ago
|
||
Oh unless this is really about seamonkey, carry on then, sorry.
![]() |
||
Comment 4•6 years ago
|
||
But then please don't cc random people....
![]() |
||
Comment 5•6 years ago
|
||
bblack Just put an NI in the bug which needs a backport. Generates bugspam in old bugs like this one here.
![]() |
||
Updated•6 years ago
|
Sorry, I was trying to open up a new bug. I clicked on New "... as a clone, in a different product" because I thought it was right for this one.
I took the others out of cc.
I didn't know that the old bug would take them over automatically.
Open it again, because hopefully the others will not be bothered anymore.
ScrollContentIntoView has all the features we need to make scrollbox.xml and tabbrowser.xml easier, more efficient and clearer.
However, not all of the passing parameters are passed through scrollIntoView, so we can't get them from Js.
FF has solved at least something with this patch after a few years, but too late for SM2.53 as opposed to SM2.57
But we should not only make whereToScroll available but also WhenToScroll in SeaMonkey.
FF has already had bug 403510 open for 12 years, although everything for it has been available in ScrollContentIntoView for at least 13 years, only the necessary flag is not passed on.
We should not follow this example and not continue to implement and adopt workarounds from FF when we can do it right, as in Bug 1606681.
Frank, what do you think.
![]() |
||
Comment 9•6 years ago
|
||
Let me look at it. Clearing the dependent bugs for now to not generate further noise there.
![]() |
||
Updated•5 years ago
|
Description
•