Skip to content

stylo: Allow display: flow-root list-item for Servo - #50254

Merged
Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:display-flow-root-list-item
Nov 27, 2026
Merged

Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:display-flow-root-list-item

Conversation

@Loirooriol

Copy link
Copy Markdown
Contributor

Bumps Stylo to servo/stylo#539

We were already capable of handling a list item that establishes a block formatting context by other means (e.g. align-content: start), but this allows authors to opt into this behavior with display alone.

Testing: Some tests pass

@Loirooriol Loirooriol added the T-linux-wpt Do a try run of the WPT label Nov 26, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#45827329499) for Linux (WPT)

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt from try job (#45827329499):

Flaky unexpected result (23)
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-advance-continue-async.any.worker.html
    • TIMEOUT [expected PASS] subtest: IDBCursor asyncness - advance

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: IDBCursor asyncness - fresh continue still async

      Test timed out
      

  • CRASH [expected OK] /IndexedDB/idbcursor-request-source.any.worker.html (#48700)
  • CRASH [expected OK] /_webgl/conformance/rendering/blending.html
  • OK /beacon/beacon-basic.https.window.html (#41723)
    • FAIL [expected PASS] subtest: Payload size restriction should be accumulated: type = blob

      assert_false: expected false got true
      

  • OK /css/cssom/getComputedStyle-inset-inline-containing-block-vertical.html
    • PASS [expected FAIL] subtest: Resolved bottom measures the inline containing block's physical height
  • TIMEOUT [expected PASS] /dom/nodes/moveBefore/moveBefore-range-iframe-crash.html
  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/cross-origin-top-navigation-with-user-activation-in-parent.window.html (#48205)
    • FAIL [expected TIMEOUT] subtest: Cross-origin top navigation is blocked without user activation, even if the parent has user activation

      assert_equals: expected "Denied" but got "Allowed"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • PASS [expected FAIL] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)
    • FAIL [expected PASS] subtest: Same-Document Referrer from Refresh

      assert_equals: original page loads expected "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/refresh/resources/refresh-with-section.sub.html?url=%23section#section"
      

  • TIMEOUT /html/browsers/history/the-history-interface/001.html (#12580)
    • FAIL [expected PASS] subtest: traversing history must also traverse hash changes

      assert_equals: (this could cause other failures later on) expected "" but got "test"
      

  • CRASH [expected TIMEOUT] /html/browsers/the-window-object/open-close/open-features-is-popup-condition.html?single-2
  • TIMEOUT [expected OK] /html/browsers/windows/consume-user-activation/window-open-multi-global.html (#47399)
    • TIMEOUT [expected FAIL] subtest: window.open() and consuming user activation with multiple globals in play

      Test timed out
      

  • ERROR [expected OK] /html/semantics/forms/the-input-element/show-picker-disabled-readonly.html (#50169)
  • OK /html/semantics/scripting-1/the-script-element/execution-timing/077.html (#22139)
    • FAIL [expected PASS] subtest: adding several types of scripts through the DOM and removing some of them confuses scheduler

      assert_array_equals: expected property 1 to be "Script #1 ran" but got "Script #3 ran" (expected array ["Script #2 ran", "Script #1 ran", "Script #3 ran", "Script #4 ran"] got ["Script #2 ran", "Script #3 ran", "Script #4 ran", "Script #1 ran"])
      

  • OK /html/syntax/speculative-parsing/expect-no-linked-resources/no-speculative-fetch.tentative.optional.html (#47290)
    • PASS [expected FAIL] subtest: expect-no-linked-resources hint was ignored
  • TIMEOUT [expected OK] /html/user-activation/navigation-state-reset-sameorigin.html (#45151)
    • TIMEOUT [expected FAIL] subtest: Post-navigation state reset.

      Test timed out
      

  • PASS [expected FAIL] /mathml/presentation-markup/operators/operator-dictionary-empty-and-three-chars.html (#49173)
  • OK /mixed-content/tentative/autoupgrades/audio-upgrade.https.sub.html (#41697)
    • FAIL [expected PASS] subtest: Audio of other host autoupgraded

      assert_equals: Length of other host audio is correct expected 1 but got Infinity
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#50155)
    • NOTRUN [expected PASS] subtest: touch two-finger pan on 'touch-action: pan-x pan-y'
    • NOTRUN [expected FAIL] subtest: touch two-finger pan on 'touch-action: pinch-zoom'
  • OK /pointerevents/pointerevent_pointercapture_in_frame.html?pen (#45536)
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.
    • PASS [expected FAIL] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.
  • OK /webdriver/tests/classic/external/global_privacy_control/set.py
    • ERROR [expected FAIL] subtest: test_set_gpc_success[True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_set_gpc_success[False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[1]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[hello]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[value3]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_set_gpc_failure[value4]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

  • OK /webdriver/tests/classic/get_current_url/user_prompts.py
    • ERROR [expected PASS] subtest: test_accept[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_accept_and_notify[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[confirm-False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss[prompt-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected PASS] subtest: test_dismiss_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 8 more unexpected results...
  • OK /webdriver/tests/classic/minimize_window/user_prompts.py
    • ERROR [expected FAIL] subtest: test_accept[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[confirm-True]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_accept_and_notify[prompt-]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[confirm-False]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss[prompt-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • ERROR [expected FAIL] subtest: test_dismiss_and_notify[alert-None]

      setup error: ConnectionRefusedError: [Errno 111] Connection refused
      

    • And 8 more unexpected results...
Stable unexpected results that are known to be intermittent (4)
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'italic' should prefer 'oblique 5deg 10deg' over 'oblique 5deg'

      assert_equals: Unexpected font on test element expected 487 but got 532
      

  • OK [expected TIMEOUT] /dom/xpath-evaluation-detached-nodes.html (#49715)
  • OK [expected ERROR] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK /preload/prefetch-document.html (#37210)
    • FAIL [expected PASS] subtest: different-site document prefetch with 'as=document' should not be consumed

      assert_equals: expected 2 but got 1
      

@github-actions

Copy link
Copy Markdown

✨ Try run (#45827329499) succeeded.

@Loirooriol
Loirooriol marked this pull request as ready for review November 26, 2026 14:37
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 26, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 27, 2026
@Loirooriol
Loirooriol force-pushed the display-flow-root-list-item branch from 2e20c85 to 7d492c6 Compare November 27, 2026 07:51
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 27, 2026
@Loirooriol
Loirooriol enabled auto-merge November 27, 2026 07:53
@Loirooriol
Loirooriol added this pull request to the merge queue Nov 27, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 27, 2026
shubhamg13 pushed a commit to shubhamg13/stylo that referenced this pull request Nov 27, 2026
In the past, Servo didn't support `flow-root` nor `contents`, so these
values were restricted to Gecko with conditional compilation.

Now Servo supports them, but some conditional compilation remained:
- `flow-root` was ignored in `is_valid_for_list_item()` for Servo.
- `contents` was ignored in `is_line_participant()` for Servo.

Note only the former mattered in practice, since `is_line_participant()`
is only used by Gecko.

To avoid risks of having the same problem for `ruby` or `-webkit-box`,
this patch removes all conditional compilation for `display` values. But
the unsupported values are gated by Servo-specific preferences.

Servo PR: servo/servo#50254

Signed-off-by: Oriol Brufau <[email protected]>
Merged via the queue into servo:main with commit bb9e153 Nov 27, 2026
38 checks passed
@Loirooriol
Loirooriol deleted the display-flow-root-list-item branch November 27, 2026 09:03
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 27, 2026
devin-ai-integration Bot added a commit to baigojahanzaib/servo that referenced this pull request Nov 28, 2026
(cherry picked from upstream bb9e153 — rev pins already correct)

Co-Authored-By: Jahanzaib Baigo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants