mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
04cc402b1d
This commit implements the rules given in the spec [0] to determine if a text directive is allowed to be scrolled to. This includes checking and consuming the text directive user activation which was introduced in the previous parts of this patch set. Additionally, a number of checks given in [1] are implemented. The newly added method is injected into our scroll-to-fragment algorithms in `Document::ScrollToRef()` and `nsDocShell::ScrollToAnchor()`. [0] https://wicg.github.io/scroll-to-text-fragment/#restricting-the-text-fragment [1] https://wicg.github.io/scroll-to-text-fragment/#check-if-a-text-directive-can-be-scrolled Differential Revision: https://phabricator.services.mozilla.com/D212820 |
||
---|---|---|
.. | ||
base | ||
build | ||
shistory | ||
test | ||
moz.build |