Skip to content

script: Implement CSSStyleSheet constructor - #36521

Merged
Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:CSSStyleSheet-constructor
Apr 15, 2025
Merged

Loirooriol merged 1 commit into
servo:mainfrom
Loirooriol:CSSStyleSheet-constructor

Conversation

@Loirooriol

@Loirooriol Loirooriol commented Apr 14, 2025 •

Copy link
Copy Markdown
Contributor

@Loirooriol Loirooriol added the T-linux-wpt Do a try run of the WPT label Apr 14, 2025
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label Apr 14, 2025
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (26)
  • OK /FileAPI/url/url-with-fetch.any.worker.html (#21517)
    • PASS [expected FAIL] subtest: Revoke blob URL after calling fetch, fetch should succeed
  • FAIL [expected PASS] /_mozilla/css/iframe/hide_and_show.html (#15265)
  • OK /_mozilla/css/offset_properties_inline.html
    • FAIL [expected PASS] subtest: offsetTop

      assert_equals: offsetTop of #inline-1 should be 0. expected 0 but got -1
      

    • FAIL [expected PASS] subtest: offsetLeft

      assert_equals: offsetLeft of #inline-2 should be 40. expected 40 but got 25
      

  • OK /content-security-policy/embedded-enforcement/subsumption_algorithm-self.html
    • PASS [expected FAIL] subtest: Returned 'self' should not be subsumed by a more secure version of origin's url.
  • TIMEOUT /content-security-policy/generic/only-valid-whitespaces-are-allowed.html (#36505)
    • FAIL [expected PASS] subtest: Should load image without any CSP - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Should load image without any CSP - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - meta tag
    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - HTTP header
    • PASS [expected FAIL] subtest: U+0009 TAB should be properly parsed between directive name and value - meta tag
    • PASS [expected FAIL] subtest: U+0009 TAB should be properly parsed between directive name and value - HTTP header
    • PASS [expected FAIL] subtest: U+000C FF should be properly parsed between directive name and value - meta tag
    • PASS [expected FAIL] subtest: U+000A LF should be properly parsed between directive name and value - meta tag
    • PASS [expected FAIL] subtest: U+000D CR should be properly parsed between directive name and value - meta tag
    • PASS [expected FAIL] subtest: U+0020 SPACE should be properly parsed between directive name and value - meta tag
    • And 12 more unexpected results...
  • OK /css/css-fonts/variations/at-font-face-font-matching.html (#20684)
    • FAIL [expected PASS] subtest: Matching font-style: 'oblique 10deg' should prefer 'oblique 15deg 20deg' over 'oblique 30deg 60deg'

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

  • FAIL [expected PASS] /css/css-sizing/dynamic-available-size-iframe.html (#31559)
  • OK /encoding/legacy-mb-japanese/shift_jis/sjis-encode-form-shift-jis.html?1-1000 (#36418)
    • FAIL [expected PASS] subtest: U+30AD キ %83%4C

      assert_equals: expected "%83%4C" but got ""
      

    • FAIL [expected PASS] subtest: U+30AE ギ %83%4D

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30AF ク %83%4E

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B0 グ %83%4F

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B1 ケ %83%50

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B2 ゲ %83%51

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B3 コ %83%52

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B4 ゴ %83%53

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B5 サ %83%54

      str is undefined
      

    • FAIL [expected PASS] subtest: U+30B6 ザ %83%55

      str is undefined
      

    • And 390 more unexpected results...
  • OK /html/browsers/browsing-the-web/navigating-across-documents/008.html (#24456)
    • PASS [expected FAIL] subtest: Link with onclick form submit to javascript url and href navigation
  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/iframe-src-aboutblank-navigate-immediately.html (#29048)
    • FAIL [expected PASS] subtest: Navigating to a different document with link click

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1" but got "about:blank"
      

    • FAIL [expected PASS] subtest: Navigating to a different document with form submission

      assert_equals: expected "http://web-platform.test:8000/common/blank.html?1=" but got "about:blank"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/initial-empty-document/load-pageshow-events-window-open.html (#28691)
    • PASS [expected FAIL] subtest: load event does not fire on window.open('about:blank')
  • OK /html/browsers/browsing-the-web/navigating-across-documents/replace-before-load/a-click.html (#28697)
    • PASS [expected FAIL] subtest: aElement.click() before the load event must NOT replace
  • FAIL [expected PASS] /html/canvas/element/manual/text/canvas.2d.disconnected.html (#30063)
  • OK [expected CRASH] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.html (#34117)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/document-with-fragment-empty.html (#28259)
    • TIMEOUT [expected FAIL] subtest: Autofocus elements in top-level browsing context's documents with empty fragments should work.

      Test timed out
      

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

      Test timed out
      

  • 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"
      

  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-1.html (#24066)
    • FAIL [expected NOTRUN] subtest: Check that popups from a sandboxed iframe do not escape the sandbox

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

  • OK /html/semantics/forms/form-submission-0/form-submit-iframe-then-location-navigate.html (#29634)
    • PASS [expected FAIL] subtest: Verifies that location navigations take precedence when following form submissions.
  • OK [expected TIMEOUT] /html/semantics/forms/form-submission-0/reparent-form-during-planned-navigation-task.html (#29724)
    • PASS [expected TIMEOUT] subtest: reparent-form-during-planned-navigation-task
  • OK /html/semantics/forms/form-submission-0/text-plain.window.html (#28687)
    • PASS [expected FAIL] subtest: text/plain: \r\n in value (normal form)
    • PASS [expected FAIL] subtest: text/plain: single quote in name (normal form)
  • OK /html/semantics/forms/form-submission-0/urlencoded2.window.html (#28687)
    • PASS [expected FAIL] subtest: application/x-www-form-urlencoded: Basic test (formdata event)
  • OK [expected TIMEOUT] /performance-timeline/navigation-id-detached-frame.tentative.html (#34773)
    • PASS [expected TIMEOUT] subtest: The navigation_id getter does not crash a window of detached frame
  • TIMEOUT [expected OK] /resource-timing/nested-context-navigations-iframe.html (#24311)
    • TIMEOUT [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent, even after history navigations by the parent

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent, even after history navigations by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe navigations are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that crossorigin iframe refreshes are not observable by the parent
    • NOTRUN [expected PASS] subtest: Test that cross-site iframe refreshes are not observable by the parent
  • TIMEOUT [expected OK] /webmessaging/with-ports/018.html (#24485)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, javascript:

      Test timed out
      

  • ERROR [expected OK] /workers/baseurl/alpha/sharedworker-in-worker.html (#21315)
Stable unexpected results that are known to be intermittent (22)
  • OK /_webgl/conformance/textures/misc/texture-upload-size.html (#21770)
    • FAIL [expected PASS] subtest: WebGL test #60

      assert_true: could not create image (SVG) expected true got false
      

  • OK /content-security-policy/frame-ancestors/frame-ancestors-path-ignored.window.html (#36468)
    • FAIL [expected PASS] subtest: A 'frame-ancestors' CSP directive with a URL that includes a path should be ignored.

      assert_unreached: The IFrame should have been blocked (or cross-origin). It wasn't. Reached unreachable code
      

  • OK /content-security-policy/generic/invalid-characters-in-policy.html (#36505)
    • FAIL [expected PASS] subtest: Should load image without any CSP - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Should load image without any CSP - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - meta tag
    • PASS [expected FAIL] subtest: Should not load image with 'none' CSP - HTTP header
    • FAIL [expected PASS] subtest: Non-ASCII character in directive value should drop the whole directive. - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII character in directive value should drop the whole directive. - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII quote character in directive value should drop the whole directive. - meta tag

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • FAIL [expected PASS] subtest: Non-ASCII quote character in directive value should drop the whole directive. - HTTP header

      assert_equals: expected "img loaded" but got "img not loaded"
      

    • PASS [expected FAIL] subtest: Non-ASCII character in directive value should not affect other directives. - meta tag
    • PASS [expected FAIL] subtest: Non-ASCII character in directive value should not affect other directives. - HTTP header
    • And 2 more unexpected results...
  • OK /css/css-grid/alignment/grid-content-alignment-with-abspos-001.html (#34339)
    • FAIL [expected PASS] subtest: .grid 1

      assert_equals: 
      <div class="grid" data-expected-width="800" data-expected-height="600">
          <div class="a" id="item" data-offset-x="329" data-offset-y="269" data-expected-width="142" data-expected-height="62" style="place-self: center;"></div>
        </div>
      offsetLeft expected 329 but got 0
      

  • PASS [expected FAIL] /css/css-tables/table-cell-overflow-auto-scrolled.html (#35011)
  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • PASS [expected FAIL] subtest: sec-fetch-storage-access - Cross-site
  • OK /html/browsers/browsing-the-web/navigating-across-documents/009.html (#24456)
    • FAIL [expected PASS] subtest: Link with onclick form submit to javascript url with document.write and href navigation

      assert_array_equals: expected property 1 to be "href" but got "click" (expected array ["write", "href"] got ["write", "click"])
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/empty-iframe-load-event.html (#29066)
    • FAIL [expected PASS] subtest: Check execution order from nested timeout

      assert_equals: Expected nested setTimeout to run second expected true but got false
      

    • FAIL [expected PASS] subtest: Check execution order on load handler

      assert_equals: Expected onload to run first expected false but got true
      

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

      assert_equals: expected "?pass" but got "?fail"
      

  • OK /html/browsers/browsing-the-web/navigating-across-documents/refresh/same-document-refresh.html (#34597)
    • PASS [expected FAIL] subtest: Same-Document Referrer from Refresh
  • CRASH [expected OK] /html/canvas/offscreen/canvas-host/2d.canvas.host.size.large.worker.html (#30164)
  • OK [expected TIMEOUT] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • PASS [expected TIMEOUT] subtest: Non-HTMLElement should not support autofocus
    • FAIL [expected NOTRUN] subtest: Host element with delegatesFocus should support autofocus

      assert_equals: expected Element node <div autofocus=""></div> but got Element node <body><div autofocus=""></div></body>
      

    • FAIL [expected NOTRUN] subtest: Host element with delegatesFocus including no focusable descendants should be skipped

      assert_equals: expected Element node <input autofocus=""></input> but got Element node <body></body>
      

    • FAIL [expected NOTRUN] subtest: Area element should support autofocus

      promise_test: Unhandled rejection with value: object "TypeError: w.document.querySelector(...) is null"
      

  • OK /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_escaping-1.html (#22647)
    • 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
  • OK [expected TIMEOUT] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_popups_nonescaping-3.html (#24066)
  • OK /html/semantics/forms/form-submission-0/jsurl-form-submit.tentative.html (#36489)
    • FAIL [expected PASS] subtest: Verifies that form submissions scheduled inside javascript: urls take precedence over the javascript: url's return value.

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

  • OK /html/semantics/forms/historical.html (#28568)
    • FAIL [expected PASS] subtest: <input name=isindex> should not be supported

      assert_regexp_match: expected object "/\?isindex=x$/" but got "about:blank"
      

  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • PASS [expected FAIL] subtest: Reload domComplete > Original domComplete
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventEnd > Original domContentLoadedEventEnd
    • PASS [expected FAIL] subtest: Reload domContentLoadedEventStart > Original domContentLoadedEventStart
    • PASS [expected FAIL] subtest: Reload domInteractive > Original domInteractive
    • PASS [expected FAIL] subtest: Reload fetchStart > Original fetchStart
    • PASS [expected FAIL] subtest: Reload loadEventEnd > Original loadEventEnd
    • PASS [expected FAIL] subtest: Reload loadEventStart > Original loadEventStart
  • ERROR /service-workers/idlharness.https.any.html (#36250)
    • PASS [expected TIMEOUT] subtest: ServiceWorkerContainer interface: operation register((TrustedScriptURL or USVString), optional RegistrationOptions)
    • PASS [expected TIMEOUT] subtest: NavigationPreloadManager interface: operation enable()
    • PASS [expected TIMEOUT] subtest: NavigationPreloadManager interface: operation disable()
    • PASS [expected TIMEOUT] subtest: NavigationPreloadManager interface: operation setHeaderValue(ByteString)
    • PASS [expected TIMEOUT] subtest: NavigationPreloadManager interface: operation getState()
  • OK /webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html (#22849)
    • FAIL [expected PASS] subtest: X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}. Index Actual Expected AbsError RelError Test threshold [14680] -9.8475110400000000e+9 2.0512369275093079e-1 9.8475110402051239e+9 4.8007672386058090e+10 3.8985999999999999e-3 [14681] 1.1480505578219891e-2 1.4340442419052124e-1 1.3192391861230135e-1 9.1994315626575540e-1 3.8985999999999999e-3 Max AbsError of 9.8475110402051239e+9 at index of 14680. Max RelError of 4.8007672386058090e+10 at index of 14680.

      assert_true: expected true got false
      

    • FAIL [expected PASS] subtest: X SNR (-156.43244358347755 dB) is not greater than or equal to 65.737. Got -156.43244358347755.

      assert_true: expected true got false
      

  • TIMEOUT [expected OK] /webmessaging/with-ports/017.html (#24486)
    • TIMEOUT [expected PASS] subtest: origin of the script that invoked the method, about:blank

      Test timed out
      

  • OK [expected ERROR] /workers/constructors/Worker/Worker-constructor.html (#22991)
Stable unexpected results (5)
  • OK /css/css-nesting/nested-declarations-cssom.html
    • PASS [expected FAIL] subtest: Attempting to insert a CSSNestedDeclaration rule into a stylesheet
  • OK /css/cssom/CSSStyleSheet-constructable-disallow-import.tentative.html
    • PASS [expected FAIL] subtest: Inserting an @import rule through insertRule on a constructed stylesheet throws an exception
  • OK /css/cssom/CSSStyleSheet-constructable.html
    • PASS [expected FAIL] subtest: title can be set in the CSSStyleSheet constructor
    • PASS [expected FAIL] subtest: Inserting an @import rule through insertRule on a constructed stylesheet throws an exception
    • PASS [expected FAIL] subtest: Cloning a shadow host will not clone shadow root, and also adoptedStyleSheets
    • PASS [expected FAIL] subtest: Importing a shadow host will not copy shadow root, and also adoptedStyleSheets
    • PASS [expected FAIL] subtest: Forcing a style update after adding an adopted stylesheet on a disconnected shadow root should not crash.
  • OK /css/cssom/CSSStyleSheet-modify-after-removal.html
    • PASS [expected FAIL] subtest: Modify constructed sheet from removed iframe
  • OK /css/cssom/insertRule-across-context.html
    • PASS [expected FAIL] subtest: The constructor of inserted rule object must be from iframe for new CSSStyleSheet()

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#14453796929) failed.

@Loirooriol
Loirooriol force-pushed the CSSStyleSheet-constructor branch from 7fa8382 to 90862c9 Compare April 14, 2025 20:20
@Loirooriol
Loirooriol marked this pull request as ready for review April 14, 2025 20:20
@Loirooriol
Loirooriol requested a review from gterzian as a code owner April 14, 2025 20:20
@Loirooriol
Loirooriol force-pushed the CSSStyleSheet-constructor branch from 90862c9 to 0a8c2b5 Compare April 15, 2025 13:34
@Loirooriol
Loirooriol enabled auto-merge April 15, 2025 13:34
@Loirooriol
Loirooriol added this pull request to the merge queue Apr 15, 2025
Merged via the queue into servo:main with commit 10f6f50 Apr 15, 2025
@Loirooriol
Loirooriol deleted the CSSStyleSheet-constructor branch April 15, 2025 15:08
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.

2 participants