Bug 1767253 [wpt PR 33894] - Set fragment index to 0 when hit-testing in non-fragmented container., a=testonly

Automatic update from web-platform-tests
Set fragment index to 0 when hit-testing in non-fragmented container.

Set the fragment index to 0, instead of leaving it at WTF::kNotFound,
when AppendSingleFragmentForHitTesting() has no container_fragment
specified. container_fragment is nullptr as an optimization, when
the container only has one fragment. See near the end of
HitTestLayerByApplyingTransform().

Bug: 1321302
Change-Id: Ibf6bfce2308229030304d99588defd9494ec0298
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3620315
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000919}

--

wpt-commits: d18cf39d92d0116ae11a6aa034d9fe2f753ce304
wpt-pr: 33894
This commit is contained in:
Morten Stenshorne 2022-05-16 10:05:41 +00:00 коммит произвёл moz-wptsync-bot
Родитель 3955d2d894
Коммит 3d470ab9f0
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,11 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1321302">
<span id="elm" style="filter:blur(1px); backface-visibility:hidden;">x</span>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(()=> {
assert_equals(elm, document.elementFromPoint(10, 10));
}, "Hit test");
</script>