Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLinks to an anchor within same page not working #12590
Comments
|
I took a brief look at #8275 and felt intimidated. I tried using HTMLElement::OffsetTop and HTMLElement::OffsetLeft intead of the content bounding box, since they were implemented recently and theoretically understand stuff about layers etc., but I ran into #12595. @mrobinson what would be involved in fixing #8275 properly? |
|
I have a feeling this may not be related to #8275 at all. I ran the test with:
The output is:
This suggests that servo has not layered the page beyond the root layer. I cannot remember exactly now, but I think that #8275 applies specifically in situations with overflow:scroll. |
|
This still doesn't work. |
The issue occurs when there is a link to another anchor tag in the same document, identified by the ID attribute. The problem also occurs identically when the name attribute is used. Clicking the link in Servo does nothing, when it should instantly scroll to the anchor.
For example:
With the above example (with dummy text long enough to cause the page to have a scroll), clicking the "Jump to end" link in Servo does nothing.
Online test case here.
On this issue, @jdm says: