Closed Bug 1945002 Opened 23 days ago Closed 21 days ago

[wpt-sync] Sync PR 50399 - Change order of [inert] vs :modal UA style for interactivity

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50399 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50399
Details from upstream follow.

Rune Lillesveen <futhark@chromium.org> wrote:

Change order of [inert] vs :modal UA style for interactivity

A fullscreen'ed element or modal dialog should still be inert if it has
an inert attribute. This keeps the existing behavior when the inert
attribute set html inertness.

The specificity is modified to ensure this behavior.

Additionally add an interactivity declaration for select buttons to
prepare for no longer setting html inertness for IsInertRoot().

The UA rule could have been implemented as :modal for both dialogs and
fullscreen elements, but that would have ended up in the universal
bucket for all elements for the dialog case.

Bug: 370065759
Change-Id: I5be974534abb6714cc964070cbf04437408a2a08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6216527
Reviewed-by: Mason Freed \<masonf@chromium.org>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1413833}

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests and 5 subtests

Status Summary

Firefox

OK : 2
FAIL: 10

Chrome

OK : 2
PASS: 4
FAIL: 6

Safari

OK : 2
FAIL: 10

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-ui/interactivity-inert-fullscreen-ua.html [wpt.fyi]
    • UA :fullscreen interactivity rule: FAIL (Chrome: PASS, Safari: FAIL)
    • UA [inert] rule wins over UA :fullscreen rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • UA :fullscreen rule overriding inherited [inert] 'interactivity:inert' rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • UA [inert] rule overriding inherited :fullscreen 'interactivity:auto' rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • Author 'interactivity:inert' overrides UA :fullscreen 'interactivity:auto' rule: FAIL (Chrome: PASS, Safari: FAIL)
  • /css/css-ui/interactivity-inert-modal-dialog-ua.html [wpt.fyi]
    • UA dialog:modal interactivity rule: FAIL (Chrome: PASS, Safari: FAIL)
    • UA [inert] rule wins over UA dialog:modal inert rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • UA dialog:modal rule overriding inherited [inert] 'interactivity:inert' rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • UA [inert] rule overriding inherited dialog:modal 'interactivity:auto' rule: FAIL (Chrome: FAIL, Safari: FAIL)
    • Author 'interactivity:inert' overrides UA dialog:modal 'interactivity:auto' rule: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b75ec103d3fa [wpt PR 50399] - Change order of [inert] vs :modal UA style for interactivity, a=testonly https://hg.mozilla.org/integration/autoland/rev/d3e9a4e445fd [wpt PR 50399] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 21 days ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.