Closed Bug 1611683 Opened 6 years ago Closed 5 years ago

Element.scrollIntoView does not follow spec handling "null", "{}" input arguments

Categories

(SeaMonkey :: General, defect, P3)

All
Unspecified
defect

Tracking

(seamonkey2.49esr wontfix, seamonkey2.53 fixed, seamonkey2.57esr affected)

RESOLVED FIXED
Tracking Status
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

Bug 1389274
Bug 1416391

+++ 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

We need a backport for 2.53

Flags: needinfo?(frgrahl)
Blocks: 1607041
Target Milestone: --- → seamonkey2.53

Please don't play with bugzilla? Use the dev instance for that.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID

Oh unless this is really about seamonkey, carry on then, sorry.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

But then please don't cc random people....

bblack Just put an NI in the bug which needs a backport. Generates bugspam in old bugs like this one here.

Flags: needinfo?(frgrahl)
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → INVALID

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.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

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.

Let me look at it. Clearing the dependent bugs for now to not generate further noise there.

User Story: (updated)
No longer depends on: 1389274, 1416391
Target Milestone: seamonkey2.53 → ---
Version: SeaMonkey 2.53 Branch → Trunk
Status: REOPENED → RESOLVED
Closed: 6 years ago5 years ago
Resolution: --- → FIXED
Whiteboard: SM2.53.2
You need to log in before you can comment on or make changes to this bug.