Skip to content

layout: Account for percentage quirk during intrinsic sizing (part 2) - #49211

Merged
Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:percentage-height-quirk-intrinsic-2
Oct 27, 2026
Merged

Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:percentage-height-quirk-intrinsic-2

Conversation

@Loirooriol

@Loirooriol Loirooriol commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

In #48978 I forgot that the percentage quirk allows skipping inline-block and floating ancestors.

Testing: Adding 2 new tests
Fixes: #49210

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

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (15)
  • TIMEOUT [expected OK] /IndexedDB/idb-partitioned-coverage.sub.html
    • TIMEOUT [expected PASS] subtest: - advance

      Test timed out
      

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

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Get bound range (generated) with maxCount

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Non existent key

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Query with empty range where lowerBound < last key

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Retrieve multiEntry key

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Retrieve one key multiple values

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Get all values with invalid query keys

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: IDBObjectStore.openKeyCursor() - forward iteration

      Test timed out
      

    • TIMEOUT [expected PASS] subtest: IDBObjectStore.openKeyCursor() - reverse iteration

      Test timed out
      

    • And 3 more unexpected results...
  • TIMEOUT [expected OK] /IndexedDB/idbcursor-request-source.any.sharedworker.html (#48728)
    • TIMEOUT [expected PASS] subtest: IDBObjectStore::openKeyCursor's request source must be the IDBObjectStore instance that opened the cursor

      Test timed out
      

  • OK /_mozilla/mozilla/iframe-contentDocument.html
    • FAIL [expected PASS] subtest: Iframe contentDocument test.

      can't access property "getElementById", iframe.contentDocument is null
      

  • OK [expected TIMEOUT] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • PASS [expected TIMEOUT] subtest: [keepalive][iframe][load] mixed content redirect; setting up
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • PASS [expected FAIL] subtest: Link with onclick navigation and href 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"
      

  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-submit-button-click.html (#44099)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by submitButton.click()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20const%20button%20%3D%20document.createElement(%22button%22)%3B%0A%20%20%20%20button.type%20%3D%20%22submit%22%3B%0A%20%20%20%20form.append(button)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20button.click()%3B%0A%20%20"
      

  • 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
      

  • TIMEOUT [expected OK] /html/user-activation/navigation-state-reset-sameorigin.html (#45151)
    • TIMEOUT [expected FAIL] subtest: Post-navigation state reset.

      Test timed out
      

  • OK /infrastructure/testdriver/click_iframe.html (#47688)
    • FAIL [expected PASS] subtest: TestDriver click on a document in an iframe

      Unhandled rejection: assert_unreached: click failed Reached unreachable code
      

  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-form-dynamic-002.html (#49169)
  • FAIL [expected PASS] /mathml/presentation-markup/operators/mo-lspace-rspace-dynamic.html (#49168)
  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html
    • 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)
    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture.

      assert_true: Timed out waiting for lostpointercapture expected true got false
      

    • FAIL [expected PASS] subtest: Test penpointer capture in same-origin frame: Pointer down at inner frame and set pointer capture to outer frame should not capture.

      assert_array_equals: Received events: innerFrame received pointerdown,innerFrame received pointermove,innerFrame received pointerup,innerFrame received lostpointercapture lengths differ, expected array ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup"] length 3, got ["innerFrame received pointerdown", "innerFrame received pointermove", "innerFrame received pointerup", "innerFrame received lostpointercapture"] length 4
      

  • OK /webxr/xrSession_features_deviceSupport.https.html (#24357)
    • FAIL [expected PASS] subtest: Immersive XRSession requests with no supported device should reject

      assert_unreached: Should have rejected: undefined Reached unreachable code
      

Stable unexpected results that are known to be intermittent (8)
  • OK /css/CSS2/linebox/inline-negative-margin-001.html (#43763)
    • FAIL [expected PASS] subtest: [data-expected-height] 3

      assert_equals: 
      <div class="w4" data-expected-height="10">123 <span style="margin-left: -4ch">1234 </span></div>
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 4

      assert_equals: 
      <div class="w4" data-expected-height="10">123 <span style="margin-left: -4ch">123 </span></div>
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 5

      assert_equals: 
      <div class="w4" data-expected-height="10"><img class="w4"><span style="margin-left: -4ch">123</span></div>
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 6

      assert_equals: 
      <div class="w4" data-expected-height="10"><img class="w5"><span style="margin-left: -5ch">123</span></div>
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 8

      assert_equals: 
      <div class="w4" data-expected-height="10"><img class="w4"><img class="w1" style="margin-left: -1ch"></div>
      height expected 10 but got 20
      

    • FAIL [expected PASS] subtest: [data-expected-height] 10

      assert_equals: 
      <div class="w4" data-expected-height="10"><img class="w5"><img class="w1" style="margin-left: -2ch"></div>
      height expected 10 but got 20
      

  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'oblique -20deg' should prefer 'oblique -60deg -40deg' over 'oblique -10deg'

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

    • PASS [expected FAIL] subtest: Matching font-style: 'oblique -21deg' should prefer 'oblique 40deg 50deg' over 'italic'
  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin-fragment.html (#20768)
    • FAIL [expected PASS] subtest: Tests that a fragment navigation in the unload handler will not block the initial navigation

      assert_equals: expected "" but got "#fragment"
      

  • OK [expected TIMEOUT] /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/form-requestsubmit.html (#44098)
    • FAIL [expected TIMEOUT] subtest: Replace before load, triggered by formElement.requestSubmit()

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?thereplacement=" but got "http://web-platform.test:8000/html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/resources/code-injector.html?pipe=sub(none)&code=%0A%20%20%20%20const%20form%20%3D%20document.createElement(%22form%22)%3B%0A%20%20%20%20form.action%20%3D%20%22%2Fcommon%2Fblank.html%22%3B%0A%0A%20%20%20%20const%20input%20%3D%20document.createElement(%22input%22)%3B%0A%20%20%20%20input.type%20%3D%20%22hidden%22%3B%0A%20%20%20%20input.name%20%3D%20%22thereplacement%22%3B%0A%20%20%20%20form.append(input)%3B%0A%0A%20%20%20%20document.currentScript.before(form)%3B%0A%20%20%20%20form.requestSubmit()%3B%0A%20%20"
      

  • TIMEOUT /html/browsers/sandboxing/sandbox-window-open-srcdoc.html (#48863)
    • TIMEOUT [expected PASS] subtest: window.open('about:srcdoc') from sandboxed srcdoc doesn't crash.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: popup is isolated from an isolated iframe
  • OK /html/semantics/embedded-content/media-elements/media_fragment_seek.html (#24114)
    • PASS [expected FAIL] subtest: Video should seek to time specified in media fragment syntax
  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • FAIL [expected PASS] subtest: Verifies that location navigations take precedence when following form submissions.

      assert_equals: expected "/html/semantics/forms/form-submission-0/resources/location.html" but got "/html/semantics/forms/form-submission-0/resources/form.html"
      

  • OK /mathml/relations/text-and-math/basic-mathematical-alphanumeric-symbols-with-default-font.html (#49181)
    • FAIL [expected PASS] subtest: Bold mathematical alphanumeric symbol with the default font

      assert_greater_than: Width of 'U+1D416 MATHEMATICAL BOLD CAPITAL W' is much larger than 'U+1D529 MATHEMATICAL FRAKTUR SMALL L' expected a number greater than 60 but got 60
      

    • FAIL [expected PASS] subtest: Bold-italic mathematical alphanumeric symbol with the default font

      assert_greater_than: Width of 'U+1D47E MATHEMATICAL BOLD ITALIC CAPITAL' is much larger than 'U+1D529 MATHEMATICAL FRAKTUR SMALL L' expected a number greater than 60 but got 60
      

@github-actions

Copy link
Copy Markdown

✨ Try run (#40013106163) succeeded.

@Loirooriol
Loirooriol force-pushed the percentage-height-quirk-intrinsic-2 branch from 6e18e0b to 39b088b Compare October 23, 2026 20:23
@Loirooriol
Loirooriol marked this pull request as ready for review October 23, 2026 20:23
@Loirooriol
Loirooriol requested a review from mrobinson as a code owner October 23, 2026 20:23
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 23, 2026
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#64134) with upstreamable changes.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#64134) title and body.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 26, 2026
@Loirooriol
Loirooriol added this pull request to the merge queue Oct 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 Oct 27, 2026
Merged via the queue into servo:main with commit 525aa57 Oct 27, 2026
39 checks passed
@Loirooriol
Loirooriol deleted the percentage-height-quirk-intrinsic-2 branch October 27, 2026 01:13
@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 Oct 27, 2026
@Loirooriol Loirooriol mentioned this pull request Nov 5, 2026
5 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong intrinsic size with percentage quirk within inline-block/float

4 participants