Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove special case for <dialog> in fullscreen display:contents code
When I added this code [1], I special-cased <dialog> and ::backdrop. But according to the spec [2], any top layer element whose display property is `contents` should compute to `block`. This CL makes the full change. This changes behavior, but in a very corner-case situation (display: contents fullscreen elements), and Chromiums code now complies with the spec. Gecko also agrees with the new behavior. Webkit is difficult to test because their fullscreen impl is broken. I'm going to monitor for bug reports in Canary/Dev/Beta and will roll this back out if any compat issues are found. [1] https://chromium-review.googlesource.com/c/chromium/src/+/3102297 [2] https://fullscreen.spec.whatwg.org/#new-stacking-layer Bug: 1240701 Change-Id: Id659be8027e257758e7d8ec1b86ec87125b0cb0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3749114 Auto-Submit: Mason Freed <masonf@chromium.org> Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> Commit-Queue: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1021448}
- Loading branch information