Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy: Fix many warnings in components/script #31717

Merged
merged 6 commits into from Mar 19, 2024

Conversation

richarddushime
Copy link
Contributor

@richarddushime richarddushime commented Mar 17, 2024


  • These changes do not require tests because they do not modify functionality, they only fix lint errors.

Copy link
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Just a few suggestions below. In the future, would it be possible to limit the size of these changes? It's quite difficult to review so many changes all at once.

Comment on lines 4387 to 4390
return {
self.webgl_error(InvalidEnum);
Ok(())
};
Copy link
Member

Choose a reason for hiding this comment

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

It feels like this should be spit up into two statements instead of putting multiple statements in a block after return. Please make this change here and other place the same pattern is repeated.

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return {
self.webgl_error(InvalidEnum);
Ok(())
};
self.webgl_error(InvalidEnum);
return Ok(());

Comment on lines 38 to 41
id: id,
kind: kind,
label: label,
language: language,
Copy link
Member

Choose a reason for hiding this comment

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

Can this just be the following?

    id,
    kind,
    label,
    language,

Copy link
Member

Choose a reason for hiding this comment

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

You resolved the conversation, but you didn't answer the question here. Can these simply be replaced by what I've written above?

@mrobinson mrobinson changed the title Fix Several clippy Warnings Fix as many clippy problems as possible #31500 clippy: Fix many warnings in components/script Mar 17, 2024
@mrobinson
Copy link
Member

It looks like there is a build failure here.

@mrobinson
Copy link
Member

When checking the box that says "./mach build -d does not report any errors" please make sure that you've actually tried building this change locally.

@richarddushime
Copy link
Contributor Author

When checking the box that says "./mach build -d does not report any errors" please make sure that you've actually tried building this change locally.

Surely, I have it built locally , let me repeat the process and i will add a screenshot
what i realized and I was going to comment is that ./mach doc is no longer returning doc errors

@mrobinson
Copy link
Member

Here are the build error from the Linux job (linked below):

warning: unused import: `js::jsapi::mozilla::Ok`
  --> components/script/dom/webgl2renderingcontext.rs:17:5
   |
17 | use js::jsapi::mozilla::Ok;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

   Compiling layout_2020 v0.0.1 (/home/runner/work/servo/servo/components/layout_2020)
   Compiling constellation v0.0.1 (/home/runner/work/servo/servo/components/constellation)
   Compiling webdriver_server v0.0.1 (/home/runner/work/servo/servo/components/webdriver_server)
error[E0308]: mismatched types
    --> components/script/dom/servoparser/mod.rs:1136:13
     |
1133 |         let element = create_element_for_token(
     |                       ------------------------ arguments to this function are incorrect
...
1136 |             *self.document,
     |             ^^^^^^^^^^^^^^ expected `&Document`, found `Document`
     |
note: function defined here
    --> components/script/dom/servoparser/mod.rs:1305:4
     |
1305 | fn create_element_for_token(
     |    ^^^^^^^^^^^^^^^^^^^^^^^^
...
1308 |     document: &Document,
     |     -------------------
help: consider removing deref here
     |
1136 -             *self.document,
1136 +             self.document,
     |

error[E0618]: expected function, found `realms::InRealm<'_>`
    --> components/script/dom/testbinding.rs:1003:47
     |
995  |         comp: InRealm,
     |         ---- `comp` has type `realms::InRealm<'_>`
...
1003 |         let p = Promise::new_in_current_realm(comp());
     |                                               ^^^^--
     |                                               |
     |                                               call expression requires function

error[E0425]: cannot find function `ok` in this scope
    --> components/script/dom/webgl2renderingcontext.rs:2957:21
1103 |                 if let Ok(content_type) = Mime::from_str(&content_type) {
     |                                           -------------- ^^^^^^^^^^^^^ expected `&str`, found `&ContentType`
     |                                           |
     |                                           arguments to this function are incorrect
     |
     = note: expected reference `&str`
                found reference `&headers::ContentType`
note: associated function defined here
    --> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/str/traits.rs:627:8

@richarddushime
Copy link
Contributor Author

Here are the build error from the Linux job (linked below):

warning: unused import: `js::jsapi::mozilla::Ok`
  --> components/script/dom/webgl2renderingcontext.rs:17:5
   |
17 | use js::jsapi::mozilla::Ok;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

   Compiling layout_2020 v0.0.1 (/home/runner/work/servo/servo/components/layout_2020)
   Compiling constellation v0.0.1 (/home/runner/work/servo/servo/components/constellation)
   Compiling webdriver_server v0.0.1 (/home/runner/work/servo/servo/components/webdriver_server)
error[E0308]: mismatched types
    --> components/script/dom/servoparser/mod.rs:1136:13
     |
1133 |         let element = create_element_for_token(
     |                       ------------------------ arguments to this function are incorrect
...
1136 |             *self.document,
     |             ^^^^^^^^^^^^^^ expected `&Document`, found `Document`
     |
note: function defined here
    --> components/script/dom/servoparser/mod.rs:1305:4
     |
1305 | fn create_element_for_token(
     |    ^^^^^^^^^^^^^^^^^^^^^^^^
...
1308 |     document: &Document,
     |     -------------------
help: consider removing deref here
     |
1136 -             *self.document,
1136 +             self.document,
     |

error[E0618]: expected function, found `realms::InRealm<'_>`
    --> components/script/dom/testbinding.rs:1003:47
     |
995  |         comp: InRealm,
     |         ---- `comp` has type `realms::InRealm<'_>`
...
1003 |         let p = Promise::new_in_current_realm(comp());
     |                                               ^^^^--
     |                                               |
     |                                               call expression requires function

error[E0425]: cannot find function `ok` in this scope
    --> components/script/dom/webgl2renderingcontext.rs:2957:21
1103 |                 if let Ok(content_type) = Mime::from_str(&content_type) {
     |                                           -------------- ^^^^^^^^^^^^^ expected `&str`, found `&ContentType`
     |                                           |
     |                                           arguments to this function are incorrect
     |
     = note: expected reference `&str`
                found reference `&headers::ContentType`
note: associated function defined here
    --> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/str/traits.rs:627:8

See my screen below
Screenshot from 2024-03-18 14-31-28

@richarddushime
Copy link
Contributor Author

Let me finish the suggested changes and i push them.

@mrobinson
Copy link
Member

See my screen below Screenshot from 2024-03-18 14-31-28

@richarddushime, instead of posting screenshots, please paste console output into a code block like I've done above.

Once you make changes, you'll need to run ./mach build -d again locally (not just ./mach run).

@richarddushime
Copy link
Contributor Author

When checking the box that says "./mach build -d does not report any errors" please make sure that you've actually tried building this change locally.

Rebuilding Now

@richarddushime
Copy link
Contributor Author

Here are the build error from the Linux job (linked below):

warning: unused import: `js::jsapi::mozilla::Ok`
  --> components/script/dom/webgl2renderingcontext.rs:17:5
   |
17 | use js::jsapi::mozilla::Ok;
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

   Compiling layout_2020 v0.0.1 (/home/runner/work/servo/servo/components/layout_2020)
   Compiling constellation v0.0.1 (/home/runner/work/servo/servo/components/constellation)
   Compiling webdriver_server v0.0.1 (/home/runner/work/servo/servo/components/webdriver_server)
error[E0308]: mismatched types
    --> components/script/dom/servoparser/mod.rs:1136:13
     |
1133 |         let element = create_element_for_token(
     |                       ------------------------ arguments to this function are incorrect
...
1136 |             *self.document,
     |             ^^^^^^^^^^^^^^ expected `&Document`, found `Document`
     |
note: function defined here
    --> components/script/dom/servoparser/mod.rs:1305:4
     |
1305 | fn create_element_for_token(
     |    ^^^^^^^^^^^^^^^^^^^^^^^^
...
1308 |     document: &Document,
     |     -------------------
help: consider removing deref here
     |
1136 -             *self.document,
1136 +             self.document,
     |

error[E0618]: expected function, found `realms::InRealm<'_>`
    --> components/script/dom/testbinding.rs:1003:47
     |
995  |         comp: InRealm,
     |         ---- `comp` has type `realms::InRealm<'_>`
...
1003 |         let p = Promise::new_in_current_realm(comp());
     |                                               ^^^^--
     |                                               |
     |                                               call expression requires function

error[E0425]: cannot find function `ok` in this scope
    --> components/script/dom/webgl2renderingcontext.rs:2957:21
1103 |                 if let Ok(content_type) = Mime::from_str(&content_type) {
     |                                           -------------- ^^^^^^^^^^^^^ expected `&str`, found `&ContentType`
     |                                           |
     |                                           arguments to this function are incorrect
     |
     = note: expected reference `&str`
                found reference `&headers::ContentType`
note: associated function defined here
    --> /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/core/src/str/traits.rs:627:8

Got the same build error locally after updating main and current branche
Thanks

@mrobinson
Copy link
Member

@richarddushime You don't need to press the "Update branch" button. I only recommend updating against main if there are merge conflicts and in that case it is better to do a manual rebase than to press the button. The reason is that every time you press the button, GitHub will create a merge commit which adds noise to the PR.

@richarddushime
Copy link
Contributor Author

@richarddushime You don't need to press the "Update branch" button. I only recommend updating against main if there are merge conflicts and in that case it is better to do a manual rebase than to press the button. The reason is that every time you press the button, GitHub will create a merge commit which adds noise to the PR.

Thanks for this I have just realized the Noise it's causing
I am now fixing the requested changes

@mrobinson mrobinson added the T-linux-wpt-2020 Do a try run of the WPT label Mar 19, 2024
Comment on lines 38 to 41
id: id,
kind: kind,
label: label,
language: language,
Copy link
Member

Choose a reason for hiding this comment

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

You resolved the conversation, but you didn't answer the question here. Can these simply be replaced by what I've written above?

Comment on lines 4387 to 4390
return {
self.webgl_error(InvalidEnum);
Ok(())
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return {
self.webgl_error(InvalidEnum);
Ok(())
};
self.webgl_error(InvalidEnum);
return Ok(());

Comment on lines +4425 to +4426
return {
self.webgl_error(InvalidOperation);
Ok(())
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return {
self.webgl_error(InvalidOperation);
Ok(())
};
self.webgl_error(InvalidOperation);
return Ok(());

Comment on lines +4431 to +4432
return {
self.webgl_error(InvalidOperation);
Ok(())
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return {
self.webgl_error(InvalidOperation);
Ok(())
};
self.webgl_error(InvalidOperation);
return Ok(());

Comment on lines +4528 to +4529
return {
self.webgl_error(InvalidOperation);
Ok(())
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return {
self.webgl_error(InvalidOperation);
Ok(())
};
self.webgl_error(InvalidOperation);
return Ok(());

@github-actions github-actions bot removed the T-linux-wpt-2020 Do a try run of the WPT label Mar 19, 2024
Copy link

🔨 Triggering try run (#8344312267) for Linux WPT

Copy link
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Thanks. I've pushed a rustfmt fix for this change. Be sure to run ./mach fmt before uploading changes.

@richarddushime
Copy link
Contributor Author

Thanks. I've pushed a rustfmt fix for this change. Be sure to run ./mach fmt before uploading changes.

I m actually building and then running it and I m going to make a final commit
I have made some few updates to make everything smooth

I m sorry for delaying it's taking time

@mrobinson
Copy link
Member

I m actually building and then running it and I m going to make a final commit I have made some few updates to make everything smooth

No worries. I've fixed the errors in a new commit. Please don't push any more commits to your branch as that may delay the landing of this change.

Copy link

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

Flaky unexpected result (16)
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-with-non-reserved-words.html (#16216)
    • NOTRUN [expected PASS] subtest: Overall test
  • TIMEOUT [expected OK] /_webgl/conformance/uniforms/out-of-bounds-uniform-array-access.html (#26225)
    • NOTRUN [expected PASS] subtest: Overall test
  • TIMEOUT [expected PASS] /css/css-color/animation/opacity-animation-ending-correctly-001.html (#29215)
  • OK /css/cssom-view/MediaQueryListEvent.html (#25275)
    • FAIL [expected PASS] subtest: argument of addListener

      assert_true: expected true got false
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/load-pageshow-events-iframe-contentWindow.html (#28681)
    • FAIL [expected PASS] subtest: load &amp; pageshow events do not fire on contentWindow of &lt;iframe&gt; element created with src=''

      assert_unreached: load should not be fired Reached unreachable code
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-cross-origin.sub.window.html (#29056)
    • FAIL [expected PASS] subtest: Cross-origin navigation started from unload handler must be ignored

      promise_test: Unhandled rejection with value: object "SecurityError: The operation is insecure."
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/navigation-unload-same-origin.window.html (#29049)
    • PASS [expected FAIL] subtest: Same-origin navigation started from unload handler must be ignored
  • 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]
      }"
      

  • OK [expected TIMEOUT] /html/infrastructure/urls/base-url/document-base-url-window-initiator-is-not-opener.https.window.html (#30970)
  • OK /html/semantics/forms/form-submission-0/multipart-formdata.window.html (#28725)
    • PASS [expected FAIL] subtest: multipart/form-data: non-ASCII in name and value (formdata event)
  • OK [expected CRASH] /html/semantics/forms/the-fieldset-element/disabled-003.html (#31730)
  • OK /html/webappapis/dynamic-markup-insertion/document-write/module-static-import-delayed.html (#26243)
    • FAIL [expected PASS] subtest: document.write in an imported module

      assert_true: onload must be called expected true got false
      

  • TIMEOUT [expected OK] /html/webappapis/scripting/processing-model-2/integration-with-the-javascript-job-queue/promise-job-entry-different-function-realm.html (#25805)
    • TIMEOUT [expected FAIL] subtest: Fulfillment handler on pending-then-fulfilled promise

      Test timed out
      

    • TIMEOUT [expected FAIL] subtest: Rejection handler on pending-then-rejected promise

      Test timed out
      

  • TIMEOUT /resource-timing/test_resource_timing.https.html (#25216)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (img)
  • OK [expected TIMEOUT] /webmessaging/with-ports/018.html (#24485)
    • PASS [expected TIMEOUT] subtest: origin of the script that invoked the method, javascript:
  • OK [expected TIMEOUT] /webmessaging/without-ports/017.html (#24486)
    • PASS [expected TIMEOUT] subtest: origin of the script that invoked the method, about:blank
Stable unexpected results that are known to be intermittent (10)
  • TIMEOUT [expected OK] /_webgl/conformance/glsl/misc/shader-uniform-packing-restrictions.html (#28103)
    • NOTRUN [expected PASS] subtest: Overall test
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • PASS [expected FAIL] subtest: Matching font-weight: '501' should prefer '500' over '450 460'
    • PASS [expected FAIL] subtest: Matching font-style: 'oblique -21deg' should prefer 'italic' over 'oblique 0deg'
  • PASS [expected FAIL] /css/css-sizing/dynamic-available-size-iframe.html (#31559)
  • OK /css/cssom-view/MediaQueryList-extends-EventTarget-interop.html (#25285)
    • FAIL [expected PASS] subtest: listener added with addListener and addEventListener (capture) is called twice

      assert_equals: triggerMQLEvent expected 2 but got 0
      

  • TIMEOUT /fetch/metadata/generated/css-images.sub.tentative.html (#29047)
    • PASS [expected TIMEOUT] subtest: background-image sec-fetch-site - HTTPS downgrade (header not sent)
  • TIMEOUT /fetch/metadata/generated/element-img-environment-change.sub.html (#30111)
    • PASS [expected FAIL] subtest: sec-fetch-site - Not sent to non-trustworthy same-origin destination, no attributes
  • OK /html/browsers/history/the-history-interface/traverse_the_history_5.html (#21383)
    • FAIL [expected PASS] subtest: Multiple history traversals, last would be aborted

      assert_array_equals: Pages opened during history navigation expected property 1 to be 5 but got 3 (expected array [6, 5] got [6, 3])
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-3.html (#24057)
    • FAIL [expected TIMEOUT] subtest: Check that popups from a sandboxed iframe escape the sandbox if allow-popups-to-escape-sandbox is used

      assert_equals: It came from a sandboxed iframe expected "null" but got "http://web-platform.test:8000"
      

  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-2.html (#22154)
    • NOTRUN [expected FAIL] subtest: Check that popups from a sandboxed iframe do not escape the sandbox
  • CRASH [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
Stable unexpected results (20)
  • FAIL [expected PASS] /_mozilla/css/text_shadow_decorations_a.html
  • FAIL [expected PASS] /_mozilla/css/text_shadow_multiple_shadows_a.html
  • FAIL [expected PASS] /_mozilla/css/text_shadow_simple_a.html
  • FAIL [expected PASS] /css/css-backgrounds/box-shadow-multiple-001.html
  • PASS [expected FAIL] /css/css-pseudo/highlight-currentcolor-painting-text-shadow-001.html
  • OK /css/css-text-decor/inheritance.html
    • FAIL [expected PASS] subtest: Property text-shadow has initial value none

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow inherits

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

  • FAIL [expected PASS] /css/css-text-decor/text-shadow/basic-negcoord.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/basic-opacity.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/basic.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/blur.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/color-inherit.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/multiple-noblur.html
  • OK /css/css-text-decor/text-shadow/parsing/text-shadow-computed.html
    • FAIL [expected PASS] subtest: Property text-shadow value 'none'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value '10px 20px'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value 'red 10px 20px 30px'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value 'calc(0.5em + 10px) calc(0.5em + 10px) calc(0.5em + 10px)'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value 'calc(-0.5em + 10px) calc(-0.5em + 10px) calc(-0.5em + 10px)'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value '10px 20px, 30px 40px'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

    • FAIL [expected PASS] subtest: Property text-shadow value 'lime 10px 20px 30px, red 40px 50px'

      assert_true: text-shadow doesn't seem to be supported in the computed style expected true got false
      

  • OK /css/css-text-decor/text-shadow/parsing/text-shadow-valid.html
    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "none" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "10px 20px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "10px 20px 30px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "calc(1em + 2px) calc(3em + 4px) calc(5em + 6px)" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "-10px 20px 30px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "10px -20px 30px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "rgb(255, 0, 0) 10px 20px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "10px 20px 30px lime" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "10px 20px, 30px 40px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

    • FAIL [expected PASS] subtest: e.style['text-shadow'] = "lime 10px 20px 30px, blue 40px 50px" should set the property value

      assert_not_equals: property should be set got disallowed value ""
      

  • FAIL [expected PASS] /css/css-text-decor/text-shadow/quirks-decor-noblur.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/standards-decor-noblur-2.html
  • FAIL [expected PASS] /css/css-text-decor/text-shadow/standards-decor-noblur.html
  • OK /css/css-transitions/animations/text-shadow-interpolation.html
    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (-0.3) should be [rgb(255, 176, 0) 7px 33px 7px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0) should be [rgb(255, 165, 0) 10px 30px 10px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0.3) should be [rgb(179, 154, 0) 13px 27px 13px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0.6) should be [rgb(102, 143, 0) 16px 24px 16px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (1) should be [rgb(0, 128, 0) 20px 20px 20px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (1.5) should be [rgb(0, 110, 0) 25px 15px 25px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions with transition: all: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (-0.3) should be [rgb(255, 176, 0) 7px 33px 7px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions with transition: all: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0) should be [rgb(255, 165, 0) 10px 30px 10px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions with transition: all: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0.3) should be [rgb(179, 154, 0) 13px 27px 13px]

      assert_true: 'to' value should be supported expected true got false
      

    • FAIL [expected PASS] subtest: CSS Transitions with transition: all: property &lt;text-shadow&gt; from neutral to [green 20px 20px 20px] at (0.6) should be [rgb(102, 143, 0) 16px 24px 16px]

      assert_true: 'to' value should be supported expected true got false
      

    • And 116 more unexpected results...
  • OK /css/css-variables/variable-substitution-shadow-properties.html
    • FAIL [expected PASS] subtest: text-shadow

      assert_equals: Expected Value should match actual value expected "rgb(0, 128, 0) 1px 1px 1px" but got ""
      

  • OK /quirks/unitless-length/excluded-properties-002.html
    • FAIL [expected PASS] subtest: Property text-shadow does not support quirky length

      assert_unreached: Property text-shadow not supported Reached unreachable code
      

Copy link

⚠️ Try run (#8344312267) failed.

auto-merge was automatically disabled March 19, 2024 15:24

Head branch was pushed to by a user without write access

@richarddushime
Copy link
Contributor Author

I m actually building and then running it and I m going to make a final commit I have made some few updates to make everything smooth

No worries. I've fixed the errors in a new commit. Please don't push any more commits to your branch as that may delay the landing of this change.

oops just seen this now and I have ready made a commit

@richarddushime
Copy link
Contributor Author

@mrobinson just made a final fix of everything is well now Hopefully
Thanks

@mrobinson
Copy link
Member

oops just seen this now and I have ready made a commit

No worries. I have sent this back to the merge queue.

@mrobinson mrobinson added this pull request to the merge queue Mar 19, 2024
Merged via the queue into servo:main with commit 01ca220 Mar 19, 2024
9 checks passed
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.

None yet

2 participants