Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Xiaocheng Hu b9b5e11e66 Bug 1804362 [wpt PR 37366] - [anchor-position] Allow top-layer elements to anchor to abspos elements, a=testonly
Automatic update from web-platform-tests
[anchor-position] Allow top-layer elements to anchor to abspos elements

Per discussion [1], we should allow a top-layer element to anchor to:
- Non-top-layer absolutely positioned elements
- Elements preceding the current element in the document top-layer

This patch implements it and adds a comprehensive test suite.

The implementation:
- Adds a flag to NGLogicalAnchorQuery::AnchorReference() to allow
  returning invalid (i.e., abspos) anchors, and sets the flag when
  positioning top-layer elements. This is fine because valid anchors
  for a top-layer element are always inserted into the AnchorQuery
  before we layout the top-layer element (ensured by layout tree order)
- Adds a flag to NGPhysicalAnchorQuery::Fragment() to allow returning
  invalid (i.e., abspos) anchors, which is for `anchor-scroll`. The
  result is further validated with layout tree order, so that we don't
  anchor a top-layer element to another element after it in the top
  layer.
- Introduces `ContainingScrollContainerForAnchor()` to correctly get
  the scroll container (nullptr) of a fixed positioned anchor, as this
  case is not possible before this patch

[1] https://github.com/w3c/csswg-drafts/issues/8165

Fixed: 1396436
Fixed: 1385882
Change-Id: I4436f35885e6fede6d780aae633c6525b4100510
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4083692
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1080999}

--

wpt-commits: 85ef51bdd55cea3fe87648edcedf1501ae6834dd
wpt-pr: 37366
2022-12-12 11:38:50 +00:00
.cargo Bug 1804545 - Re-vendor application-services to pickup fix to IDs in sync payload. r=skhamis,supply-chain-reviewers 2022-12-08 00:26:37 +00:00
.vscode
accessible Bug 1804991: Issue a warning if we attempt to stringify an empty array, but don't crash r=nlapre 2022-12-09 23:56:58 +00:00
browser Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8 2022-12-12 10:08:03 +00:00
build Backed out changeset 79025940a6a6 (bug 1799423) for causing Bug 1804813 a=backout 2022-12-09 06:48:09 +02:00
caps Bug 1443925 - Part 12: Add some basic tests for using nsIPrincipal off-main-thread, r=ckerschb 2022-12-02 00:53:54 +00:00
chrome Bug 1793463 - Part 6: Remove nsIProtocolHandler.{defaultPort,protocolFlags}, r=necko-reviewers,valentin 2022-12-01 15:43:19 +00:00
config Bug 1803557 - Refactor cargo subcommands in mach_commands.py. r=glandium 2022-12-07 06:07:22 +00:00
devtools Bug 1777800 - [devtools] Update the curl escape string for windows to no longer try to handle powershell r=nchevobbe 2022-12-12 11:20:18 +00:00
docs Bug 1803850 - Replace inactive module owner / peers in Core :: Build Config - Taskgraph module, r=zeid 2022-12-09 19:08:38 +00:00
docshell Bug 1801843 - Add disable next line for all docshell/test/browser r=smaug 2022-12-08 12:41:59 +00:00
dom Bug 1804924 - Don't use DrawTargetWebgl when willReadFrequently is set. r=jgilbert,jrmuizel 2022-12-10 04:46:28 +00:00
editor Bug 1803914 - Automatically replace Cu.reportError with console.error (misc). r=mossop 2022-12-06 14:34:57 +00:00
extensions Bug 1541508 - Use Services.env in extensions/ r=extension-reviewers,robwu 2022-11-25 19:09:07 +00:00
gfx Bug 1685648 - Prevent a fast fling when trying to pinch-zoom on a non-zoomable page. r=botond 2022-12-11 05:29:12 +00:00
gradle/wrapper
hal Bug 1744687 - Part 3. Fix build error for newer Windows SDK. r=gsvelto 2022-11-25 15:13:43 +00:00
image Bug 1771867 - Early Hints Phase 2 - Part 7: Pass early hint preload to image preloader r=necko-reviewers,valentin 2022-12-02 16:15:55 +00:00
intl Bug 1804404 - Update l10n documentation due to DTD & .inc removal. r=flod 2022-12-07 11:50:39 +00:00
ipc Backed out 3 changesets (bug 1790872) on request of nika for causing regressions. CLOSED TREE 2022-12-08 23:17:57 +01:00
js Bug 1804629 - Part 2: Remove assertion about current mark color that doesn't hold r=sfink 2022-12-12 10:19:24 +00:00
layout Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8 2022-12-12 10:08:03 +00:00
media Bug 1802444 - Update opus to 757c53f775a0b651b0512a1992d67f4b2159a378 r=kinetik DONTBUILD 2022-12-12 07:37:46 +00:00
memory Backed out 3 changesets (bug 1743322) for causing multiple failures CLOSED TREE 2022-12-06 11:48:14 +02:00
mfbt Bug 840706 - Part 1: Add MFBT_API annotations to other methods in StringToDoubleConverter, r=glandium 2022-12-06 20:27:49 +00:00
mobile Backed out changeset 2522b2da871e (bug 1751763) as per sgalich's request. CLOSED TREE 2022-12-09 22:35:41 +02:00
modules Merge mozilla-central to autoland on a CLOSED TREE 2022-12-10 00:51:54 +02:00
mozglue Bug 1800898 - Add helpers to iterate unwind codes on Windows. r=mhowell,handyman 2022-12-12 10:12:51 +00:00
netwerk Bug 1804668 - Put TRRSkippedReasons in source docs r=necko-reviewers,kershaw 2022-12-08 17:01:06 +00:00
nsprpub
other-licenses
parser Bug 1771867 - Early Hints Phase 2 - Part 6: Pass early hint preload to style preloader r=necko-reviewers,valentin 2022-12-02 16:15:55 +00:00
python Bug 1804588 - Add a dependency on symbols files for libraries that have one. r=firefox-build-system-reviewers,nalexander 2022-12-08 04:37:39 +00:00
remote Bug 1723102 - [bidi] Implement full support for session.subscribe and session.unsubscribe commands. r=webdriver-reviewers,jdescottes,whimboo 2022-12-08 08:44:58 +00:00
security Bug 1802996 - land NSS NSS_3_86_RTM UPGRADE_NSS_RELEASE, r=bbeurdouche 2022-12-08 20:51:52 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM 2022-12-08 14:23:48 +00:00
servo Bug 1804677 - Don't share style for cousins that are using Container Queries. r=emilio 2022-12-09 10:15:31 +00:00
startupcache Bug 1800050 - Use UniqueFreePtr in StartupCache::PutBuffer. r=nbp 2022-12-01 10:46:34 +00:00
storage Bug 1798711 - Remove duplication of DisableCrashReporter on gtest r=ahal 2022-11-30 14:41:42 +00:00
supply-chain Bug 1804624 - upgrade to authenticator 0.4.0-alpha.4. r=dveditz,supply-chain-reviewers 2022-12-08 20:28:02 +00:00
taskcluster Bug 1803831 - [ci] Migrate 'valgrind' tasks from AWS -> GCP, r=MasterWayZ,ahal,glandium 2022-12-12 10:02:39 +00:00
testing Bug 1804362 [wpt PR 37366] - [anchor-position] Allow top-layer elements to anchor to abspos elements, a=testonly 2022-12-12 11:38:50 +00:00
third_party Bug 1804624 - upgrade to authenticator 0.4.0-alpha.4. r=dveditz,supply-chain-reviewers 2022-12-08 20:28:02 +00:00
toolkit Bug 1800898 - Add unwinding information for in-process detoured code. r=handyman,mhowell 2022-12-12 10:12:51 +00:00
tools Bug 1803361 - Use decision matrices for the perf-selector category expansion. r=perftest-reviewers,kshampur 2022-12-08 22:34:35 +00:00
uriloader Bug 1771867 - Early Hints Phase 2 - Part 7: Pass early hint preload to image preloader r=necko-reviewers,valentin 2022-12-02 16:15:55 +00:00
view Bug 1802225 - Remove Layers.{h,cpp}. r=tnikkel,geckoview-reviewers,jgilbert,media-playback-reviewers,padenot,m_kato 2022-11-29 01:52:03 +00:00
widget Bug 1772073 [Wayland] Call gtk_window_set_transient_for() only if widget parent is changed r=emilio 2022-12-08 10:49:13 +00:00
xpcom Bug 1804755 - Log name for failed ProxyReleaseEvent dispatch warning, r=xpcom-reviewers,jstutte 2022-12-08 23:26:52 +00:00
xpfe/appshell Backed out 4 changesets (bug 1786048) for causing multiple failures. CLOSED TREE 2022-12-02 20:30:07 +02:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml
.eslintignore Bug 1803360 - [devtools] Put pretty-fast library in tree. r=ochameau. 2022-12-08 15:54:07 +00:00
.eslintrc-test-paths.js
.eslintrc.js Bug 1801843 - Add disable next line for all docshell/test/browser r=smaug 2022-12-08 12:41:59 +00:00
.flake8
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1790483 - Vendor the lit library in toolkit/content/widgets r=hjones 2022-12-07 15:46:06 +00:00
.hgtags
.isort.cfg
.lando.ini Bug 1801965: update .lando.ini file for new autoformatting implementation r=zeid DONTBUILD 2022-11-22 20:19:59 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle
Cargo.lock Bug 1804624 - upgrade to authenticator 0.4.0-alpha.4. r=dveditz,supply-chain-reviewers 2022-12-08 20:28:02 +00:00
Cargo.toml Bug 1804545 - Re-vendor application-services to pickup fix to IDs in sync payload. r=skhamis,supply-chain-reviewers 2022-12-08 00:26:37 +00:00
client.mk Bug 1802075 - Avoid calling "--stop-server" as a command on local build failure. r=firefox-build-system-reviewers,andi 2022-11-23 20:38:52 +00:00
client.py Bug 1790816 - Reformat client.py and configure.py with isort. r=linter-reviewers,sylvestre DONTBUILD 2022-11-24 13:09:01 +00:00
CLOBBER Bug 1792775 - Part 13: Updating ICU requires a clobber. r=platform-i18n-reviewers,dminor 2022-11-23 17:56:18 +00:00
configure
configure.py Bug 1790816 - Reformat client.py and configure.py with isort. r=linter-reviewers,sylvestre DONTBUILD 2022-11-24 13:09:01 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LICENSE
mach
mach.cmd
mach.ps1
Makefile.in
mots.yaml Bug 1803850 - Replace inactive module owner / peers in Core :: Build Config - Taskgraph module, r=zeid 2022-12-09 19:08:38 +00:00
moz.build
moz.configure Bug 1802405 - Prepend mozillabuild msys2 to path only for the build. r=glandium 2022-11-26 23:23:34 +00:00
mozilla-config.h.in
old-configure.in Bug 1802228 - Select a host linker in the same manner we do for the target linker. r=firefox-build-system-reviewers,ahochheiden 2022-11-25 01:56:38 +00:00
package-lock.json Bug 1802860 - Update top-level and eslint-plugin-mozilla node_modules packages. r=mossop 2022-12-06 14:35:07 +00:00
package.json Bug 1802860 - Update top-level and eslint-plugin-mozilla node_modules packages. r=mossop 2022-12-06 14:35:07 +00:00
README.txt
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.