Skip to content

layout: Add support for background-attachment: fixed - #32068

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:add-support-for-background-attachment-fixed
Apr 15, 2024
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:add-support-for-background-attachment-fixed

Conversation

@mrobinson

@mrobinson mrobinson commented Apr 13, 2024 •

Copy link
Copy Markdown
Member

Co-authored-by: Oriol Brufau [email protected]


@mrobinson mrobinson added the T-linux-wpt Do a try run of the WPT label Apr 13, 2024
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 13, 2024
@github-actions

Copy link
Copy Markdown

🔨 Triggering try run (#8672564642) for Linux WPT

@github-actions

Copy link
Copy Markdown

Test results for linux-wpt-layout-2020 from try job (#8672564642):

Flaky unexpected result (12)
  • FAIL [expected PASS] /_mozilla/mozilla/iframe/resize_after_load.html (#13573)
  • PASS [expected TIMEOUT] /css/css-fonts/font-size-adjust-reload.html (#30678)
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • PASS [expected FAIL] subtest: Matching font-weight: '400' should prefer '500' over '350 399'
    • PASS [expected FAIL] subtest: Matching font-weight: '400' should prefer '351 398' over '501 550'
    • PASS [expected FAIL] subtest: Matching font-stretch: '90%' should prefer '90% 100%' over '50% 80%'
    • PASS [expected FAIL] subtest: Matching font-style: 'italic' should prefer 'oblique -60deg -30deg' over 'oblique -50deg -40deg'
    • PASS [expected FAIL] subtest: Matching font-style: 'oblique 0deg' should prefer 'italic' over 'oblique -50deg -20deg'
    • PASS [expected FAIL] subtest: Matching font-style: 'oblique -10deg' should prefer 'oblique 0deg 10deg' over 'oblique 40deg 50deg'
  • OK /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/a-click.html (#28697)
    • FAIL [expected PASS] subtest: aElement.click() before the load event must NOT replace

      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%20a%20%3D%20document.createElement(%22a%22)%3B%0A%20%20%20%20a.href%20%3D%20%22%2Fcommon%2Fblank.html%3Fthereplacement%22%3B%0A%20%20%20%20document.currentScript.before(a)%3B%0A%20%20%20%20a.click()%3B%0A%20%20"
      

  • OK /html/browsers/browsing-the-web/read-media/pageload-image-in-popup.html (#23849)
    • PASS [expected FAIL] subtest: The document for a standalone media file should have one child in the body.
  • OK [expected CRASH] /html/browsers/windows/embedded-opener-remove-frame.html (#23867)
    • FAIL [expected TIMEOUT] subtest: opener of discarded auxiliary browsing context

      assert_object_equals: property "get" expected function "function opener() {
          [native code]
      }" got function "function opener() {
          [native code]
      }"
      

  • TIMEOUT [expected OK] /html/semantics/document-metadata/the-base-element/base_target_does_not_affect_location_assignment.html
    • TIMEOUT [expected PASS] subtest: base_target_does_not_affect_location_assignment

      Test timed out
      

  • TIMEOUT [expected CRASH] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-2.html (#22667)
  • OK /html/semantics/embedded-content/the-img-element/non-active-document.html (#21544)
    • FAIL [expected PASS] subtest: DOMParser

      assert_unreached: got unexpected load event Reached unreachable code
      

    • FAIL [expected PASS] subtest: createHTMLDocument

      assert_unreached: got unexpected error event Reached unreachable code
      

    • FAIL [expected PASS] subtest: <template>

      assert_unreached: got unexpected error event Reached unreachable code
      

  • TIMEOUT [expected OK] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html (#29724)
    • TIMEOUT [expected PASS] subtest: reparent-form-during-planned-navigation-task

      Test timed out
      

  • TIMEOUT [expected PASS] /streams/readable-streams/crashtests/strategy-worker-terminate.html
  • OK /workers/WorkerGlobalScope-close.html (#23064)
    • PASS [expected FAIL] subtest: Test sending a message after closing.
Stable unexpected results that are known to be intermittent (9)
  • FAIL [expected PASS] /_mozilla/css/iframe/hide_and_show.html (#15265)
  • PASS [expected FAIL] /css/css-sizing/dynamic-available-size-iframe.html (#31559)
  • TIMEOUT /fetch/metadata/generated/element-img-environment-change.sub.html (#30111)
    • FAIL [expected PASS] subtest: sec-fetch-site - Not sent to non-trustworthy same-origin destination, no attributes

      promise_test: Unhandled rejection with value: object "Error: Failed to query for recorded headers."
      

  • TIMEOUT [expected OK] /html/browsers/history/the-history-interface/traverse_the_history_write_onload_1.html (#21581)
    • TIMEOUT [expected PASS] subtest: Traverse the history when a history entry is written in the load event

      Test timed out
      

  • CRASH [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
    • NOTRUN [expected FAIL] subtest: Check that popups from a sandboxed iframe do not escape the sandbox
  • OK [expected TIMEOUT] /resource-timing/nested-context-navigations-iframe.html (#24311)
    • PASS [expected NOTRUN] subtest: Test that iframe navigations are not observable by the parent
    • PASS [expected NOTRUN] subtest: Test that crossorigin iframe navigations are not observable by the parent
    • PASS [expected NOTRUN] subtest: Test that cross-site iframe navigations are not observable by the parent
    • PASS [expected NOTRUN] subtest: Test that iframe refreshes are not observable by the parent
    • PASS [expected NOTRUN] subtest: Test that crossorigin iframe refreshes are not observable by the parent
    • PASS [expected NOTRUN] subtest: Test that cross-site iframe refreshes are not observable by the parent
  • OK [expected TIMEOUT] /webmessaging/with-ports/018.html (#24485)
    • PASS [expected TIMEOUT] subtest: origin of the script that invoked the method, javascript:
Stable unexpected results (9)
  • PASS [expected FAIL] /css/CSS2/backgrounds/background-attachment-applies-to-007.xht
  • PASS [expected FAIL] /css/CSS2/backgrounds/background-attachment-applies-to-009.xht
  • PASS [expected FAIL] /css/CSS2/backgrounds/background-attachment-applies-to-012.xht
  • PASS [expected FAIL] /css/CSS2/backgrounds/background-attachment-applies-to-013.xht
  • PASS [expected FAIL] /css/CSS2/backgrounds/background-attachment-applies-to-014.xht
  • PASS [expected FAIL] /css/css-backgrounds/background-attachment-fixed-border-radius-offset.html
  • PASS [expected FAIL] /css/css-backgrounds/background-attachment-fixed-inline-scrolled.html
  • PASS [expected FAIL] /css/css-backgrounds/background-attachment-margin-root-002.html
  • PASS [expected FAIL] /css/css-backgrounds/background-origin-006.html

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#8672564642) failed.

Comment on lines +137 to +139
if let Some(positioning_area_override) = self.positioning_area_override.as_ref() {
return positioning_area_override.clone();
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if let Some(positioning_area_override) = self.positioning_area_override.as_ref() {
return positioning_area_override.clone();
}
if let Some(positioning_area_override) = self.positioning_area_override {
return positioning_area_override;
}

Comment on lines +149 to +153
Origin::ContentBox => fragment_builder.content_rect(),
Origin::PaddingBox => fragment_builder.padding_rect(),
Origin::BorderBox => &fragment_builder.border_rect,
}
})
.clone(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

                Origin::ContentBox => *fragment_builder.content_rect(),
                Origin::PaddingBox => *fragment_builder.padding_rect(),
                Origin::BorderBox => fragment_builder.border_rect,
            },

@mrobinson
mrobinson force-pushed the add-support-for-background-attachment-fixed branch from dfbc907 to 70a8b3a Compare April 13, 2024 15:32
@mrobinson
mrobinson marked this pull request as ready for review April 13, 2024 15:32
@mrobinson

Copy link
Copy Markdown
Member Author

@Loirooriol Thanks for the review. I think this one is ready to look at again.

@mrobinson
mrobinson added this pull request to the merge queue Apr 15, 2024
Merged via the queue into servo:main with commit 8bcb316 Apr 15, 2024
@mrobinson
mrobinson deleted the add-support-for-background-attachment-fixed branch April 15, 2024 21:42
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.

Correct background-attachment: fixed

2 participants