Commit Graph
2 Commits
Author SHA1 Message Date
Alex Rudenko 8cb7637d02 Change rendering order in the scroll snap overlay
Previously, the container border was rendered before snap areas.
This was leading to the container border being overwritten by
the areas when there are no margins between the container and the
areas. This CL changes the order so that the container border is
rendered on top of the areas.

Before: https://i.imgur.com/iz4kTnM.png
After: https://i.imgur.com/xmpkyKk.png

Fixed: chromium:1196566
Change-Id: Ie3a29013d4c62c72f9f11c55ac12b5e516403bd9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2810274
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
2021-04-07 13:17:09 +00:00
Alex Rudenko e633829116 Implements an overlay to visualise CSS scroll snapping
Also, the CL includes a new adorner to control the overlay.

Screenshot: https://i.imgur.com/SZ6zkVm.png
Design doc: https://docs.google.com/document/d/1P1AmuxVpPuSMerPpK4XuWpqKGYqGlvN_G5g5ZQJwetY
Bug: chromium:862450
Change-Id: I21546d99d72fe95a6f20a72606b542c3b10c31f9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2763879
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
2021-04-01 08:11:13 +00:00