Skip to content

layout: Replace UA stylesheet usage of legacy :matches by :is - #44837

Merged
TimvdLippe merged 3 commits into
servo:mainfrom
avis137:ua-legacy-matches
May 12, 2026
Merged

TimvdLippe merged 3 commits into
servo:mainfrom
avis137:ua-legacy-matches

Conversation

@avis137

@avis137 avis137 commented May 10, 2026 •

Copy link
Copy Markdown
Contributor

Several UA stylesheet rules were ignored because Stylo does not implement the legacy :matches alias.
This pull request replaces all occurrences of the legacy :matches() pseudo-selector by :is() selectors,
except for the h1-h6 in section rules that are removed as they are no longer in the specification (whatwg/html#7867).

Testing: existing WPT tests have new passes, and new expected fails of tests that seem outdated (https://bugzilla.mozilla.org/show_bug.cgi?id=1887417#c3)
Fixes: #43355

@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 10, 2026
@TimvdLippe TimvdLippe added the T-linux-wpt Do a try run of the WPT label May 10, 2026
@github-actions github-actions Bot removed the T-linux-wpt Do a try run of the WPT label May 10, 2026
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

Flaky unexpected result (27)
  • TIMEOUT [expected OK] /IndexedDB/worker-termination-aborts-upgrade.window.html (#42177)
    • TIMEOUT [expected PASS] subtest: Worker Termination Aborts a Pending Upgrade

      Test timed out
      

  • CRASH [expected OK] /content-security-policy/meta/sandbox-iframe.html (#43478)
  • FAIL [expected PASS] /css/css-backgrounds/background-size-042.html
  • OK /css/css-cascade/layer-cssom-order-reverse.html (#36094)
    • FAIL [expected PASS] subtest: Delete layer invalidates @font-face

      assert_equals: expected "220px" but got "133px"
      

  • OK /css/css-cascade/layer-font-face-override.html (#35935)
    • FAIL [expected PASS] subtest: @font-face override update with appended sheet 1

      assert_equals: expected "80px" but got "38.3166666666667px"
      

    • FAIL [expected PASS] subtest: @font-face override update with appended sheet 2

      assert_equals: expected "80px" but got "38.3166666666667px"
      

  • FAIL [expected PASS] /css/css-ui/compute-kind-widget-generated/grouped-kind-of-widget-fallback-border-block-start-style-001.html
  • FAIL [expected PASS] /css/css-ui/compute-kind-widget-generated/grouped-kind-of-widget-fallback-border-top-left-radius-001.html
  • TIMEOUT [expected OK] /fetch/api/redirect/redirect-keepalive.https.any.html (#32153)
    • TIMEOUT [expected PASS] subtest: [keepalive][iframe][load] mixed content redirect; setting up

      Test timed out
      

  • 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/history/the-history-interface/traverse_the_history_3.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • OK /html/browsers/history/the-history-interface/traverse_the_history_4.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • OK /html/browsers/history/the-history-interface/traverse_the_history_5.html (#21383)
    • PASS [expected FAIL] subtest: Multiple history traversals, last would be aborted
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/autofocus-dialog.html (#29087)
    • TIMEOUT [expected FAIL] subtest: <dialog>-contained autofocus element gets focused when the dialog is shown

      Test timed out
      

  • TIMEOUT [expected OK] /html/semantics/embedded-content/the-iframe-element/iframe_sandbox_navigate_other_frame_popup.sub.html (#39702)
    • TIMEOUT [expected FAIL] subtest: Sandboxed iframe can not navigate other frame's popup

      Test timed out
      

  • OK /html/semantics/forms/form-submission-0/jsurl-form-submit.tentative.html (#36489)
    • PASS [expected FAIL] subtest: Verifies that form submissions scheduled inside javascript: urls take precedence over the javascript: url's return value.
  • CRASH [expected OK] /html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-5.html
  • TIMEOUT [expected ERROR] /infrastructure/expected-fail/user-prompt.html?type=alert
  • OK /mixed-content/tentative/autoupgrades/audio-upgrade.https.sub.html (#41697)
    • FAIL [expected PASS] subtest: Audio autoupgraded

      assert_equals: Length expected 1 but got Infinity
      

  • TIMEOUT [expected OK] /pointerevents/compat/pointerevent_touch-action_two-finger_interaction.html (#44693)
    • 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 /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
      

  • CRASH [expected OK] /resource-timing/render-blocking-status-link.html (#41664)
  • OK /resource-timing/test_resource_timing.https.html (#25216)
    • PASS [expected FAIL] subtest: PerformanceEntry has correct name, initiatorType, startTime, and duration (script)
  • OK /sanitizer-api/sanitizer-inert-document.tentative.html (#44273)
    • PASS [expected FAIL] subtest: Test whether setHTMLUnsafe loads the image.
  • OK /touch-events/single-tap-when-touchend-listener-use-sync-xhr.html (#41175)
    • FAIL [expected PASS] subtest: Click event should be fired when touchend opens synchronous XHR

      assert_equals: expected "touchend@div, mousedown@div, mouseup@div, click@div" but got "touchend@div"
      

  • TIMEOUT [expected OK] /trusted-types/trusted-types-navigation.html?16-20 (#44835)
    • TIMEOUT [expected PASS] subtest: Navigate a frame via area with javascript:-urls w/ default policy in enforcing mode.

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Navigate a frame via area with javascript:-urls in report-only mode.
    • NOTRUN [expected PASS] subtest: Navigate a frame via area with javascript:-urls w/ default policy in report-only mode.
  • TIMEOUT [expected OK] /webstorage/localstorage-about-blank-3P-iframe-opens-3P-window.partitioned.html (#29053)
    • TIMEOUT [expected FAIL] subtest: StorageKey: test 3P about:blank window opened from a 3P iframe

      Test timed out
      

  • 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 (21)
  • OK /IndexedDB/transaction-create_in_versionchange.any.html (#44200)
    • PASS [expected FAIL] subtest: Attempt to create new transactions inside a versionchange transaction
  • TIMEOUT [expected OK] /_mozilla/mozilla/window-resize-event.html (#36741)
    • TIMEOUT [expected PASS] subtest: Popup onresize event fires after resizeTo

      Test timed out
      

  • OK [expected TIMEOUT] /credential-management/credentialscontainer-frame-basics.https.html (#39430)
    • FAIL [expected TIMEOUT] subtest: navigator.credentials should be undefined in documents generated from data: URLs.

      assert_equals: expected "undefined" but got "[object CredentialsContainer]"
      

  • OK /css/css-fonts/generic-family-keywords-003.html (#38994)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted cursive (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted fantasy (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted monospace (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted system-ui (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted generic(fangsong) (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted generic(kai) (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted generic(khmer-mul) (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted generic(nastaliq) (drawing text in a canvas)
    • PASS [expected FAIL] subtest: @font-face matching for quoted and unquoted ui-serif (drawing text in a canvas)
  • OK /fetch/metadata/generated/css-font-face.https.sub.tentative.html (#32732)
    • FAIL [expected PASS] subtest: sec-fetch-storage-access - Same site

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

  • ERROR [expected OK] /focus/focus-event-after-switching-iframes.sub.html (#40368)
  • OK /html/browsers/browsing-the-web/navigating-across-documents/005.html (#27062)
    • FAIL [expected PASS] subtest: Link with onclick navigation and href navigation

      assert_equals: expected "href" but got "click"
      

  • OK [expected TIMEOUT] /html/infrastructure/urls/base-url/document-base-url-window-initiator-is-not-opener.https.window.html (#30970)
  • TIMEOUT [expected OK] /html/interaction/focus/the-autofocus-attribute/supported-elements.html (#24145)
    • TIMEOUT [expected FAIL] subtest: Element with tabindex should support autofocus

      Test timed out
      

    • NOTRUN [expected PASS] subtest: Non-HTMLElement should not support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus should support autofocus
    • NOTRUN [expected FAIL] subtest: Host element with delegatesFocus including no focusable descendants should be skipped
    • NOTRUN [expected FAIL] subtest: Area element should support autofocus
  • 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/semantics/scripting-1/the-script-element/module/choice-of-error-1.html (#44058)
    • FAIL [expected PASS] subtest: Parse errors in different files should be reported depending on different roots

      assert_not_equals: two different parse errors should be reported got disallowed value object "SyntaxError: expected expression, got '%'"
      

  • OK /html/semantics/scripting-1/the-script-element/module/dynamic-import/blob-url.any.worker-module.html (#43510)
    • PASS [expected FAIL] subtest: Revoking a blob URL immediately after calling import will not fail
  • OK /html/semantics/scripting-1/the-script-element/module/dynamic-import/blob-url.any.worker.html (#33909)
    • FAIL [expected PASS] subtest: Revoking a blob URL immediately after calling import will not fail

      promise_test: Unhandled rejection with value: object "TypeError: Module fetching failed"
      

  • OK /html/webappapis/user-prompts/print-during-unload.html (#35944)
    • PASS [expected FAIL] subtest: print() during unload
  • OK [expected TIMEOUT] /infrastructure/testdriver/click_nested.html (#43887)
    • FAIL [expected NOTRUN] subtest: TestDriver click method with multiple windows and nested iframe

      can't access property "document", child.frames[2] is undefined
      

  • OK /mixed-content/tentative/autoupgrades/mixed-content-cors.https.sub.html (#41123)
    • FAIL [expected PASS] subtest: Cross-Origin audio should get upgraded even if CORS is set

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

  • OK /navigation-timing/test-navigation-type-reload.html (#33334)
    • FAIL [expected PASS] subtest: Reload domInteractive > Original domInteractive

      assert_true: Reload domInteractive > Original domInteractive expected true got false
      

    • FAIL [expected PASS] subtest: Reload fetchStart > Original fetchStart

      assert_true: Reload fetchStart > Original fetchStart expected true got false
      

  • OK /resource-timing/buffer-full-when-populate-entries.html (#44408)
    • PASS [expected FAIL] subtest: Test that a buffer full event does not bubble and that resourcetimingbufferfull is called only once per overflow
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?26-30 (#38807)
    • PASS [expected TIMEOUT] subtest: Navigate a window via form-submission with javascript:-urls in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a window via form-submission with javascript:-urls w/ default policy in report-only mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via form-submission with javascript:-urls in enforcing mode.
    • PASS [expected NOTRUN] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in enforcing mode.
  • OK [expected TIMEOUT] /trusted-types/trusted-types-navigation.html?31-35 (#38034)
    • PASS [expected TIMEOUT] subtest: Navigate a frame via form-submission with javascript:-urls w/ default policy in report-only mode.
    • FAIL [expected NOTRUN] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in enforcing mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
      

    • FAIL [expected NOTRUN] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy throwing an exception in report-only mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
      

    • FAIL [expected NOTRUN] subtest: Navigate a window via form-submission with javascript:-urls w/ a default policy making the URL invalid in enforcing mode.

      promise_test: Unhandled rejection with value: "Unexpected message received: \"No securitypolicyviolation reported!\""
      

  • OK /visual-viewport/resize-event-order.html (#41981)
    • FAIL [expected PASS] subtest: Popup: DOMWindow resize fired before VisualViewport.

      assert_equals: expected "window-attribute,window-addEventListener,visualViewport-attribute,visualViewport-addEventListener" but got ""
      

Stable unexpected results (6)
  • OK /css/css-tables/html-to-css-mapping-2.html
    • FAIL [expected PASS] subtest: 1: HTML -> CSS Mapping for borders is applied correctly on table markup (table left color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • PASS [expected FAIL] subtest: 2: HTML -> CSS Mapping for borders is applied correctly on table markup (table left color)
    • FAIL [expected PASS] subtest: 3a: HTML -> CSS Mapping for borders is applied correctly on table markup (table left color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • FAIL [expected PASS] subtest: 3b: HTML -> CSS Mapping for borders is applied correctly on table markup (td top color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • FAIL [expected PASS] subtest: 3c: HTML -> CSS Mapping for borders is applied correctly on table markup (td left color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • FAIL [expected PASS] subtest: 4: HTML -> CSS Mapping for borders is applied correctly on table markup (table left color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • FAIL [expected PASS] subtest: 4: HTML -> CSS Mapping for borders is applied correctly on table markup (td left color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

    • FAIL [expected PASS] subtest: 5b: HTML -> CSS Mapping for borders is applied correctly on table markup (table right color)

      assert_equals: expected "rgb(128, 128, 128)" but got "rgb(0, 0, 0)"
      

  • OK /html/rendering/non-replaced-elements/lists/lists-styles-quirks.html
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <dir> (in <menu>) - margin-top
    • And 170 more unexpected results...
  • OK /html/rendering/non-replaced-elements/lists/lists-styles.html
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <dir> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <menu> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - margin-top
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - margin-bottom
    • PASS [expected FAIL] subtest: <ul> (in <dir>) - list-style-type
    • PASS [expected FAIL] subtest: <dir> (in <menu>) - margin-top
    • And 170 more unexpected results...
  • OK /html/rendering/non-replaced-elements/sections-and-headings/headings-styles.html
    • FAIL [expected PASS] subtest: <h1> (in <article>) - margin-top

      assert_equals: expected "21.4333333333333px" but got "19.9166666666667px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article>) - margin-bottom

      assert_equals: expected "21.4333333333333px" but got "19.9166666666667px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article>) - font-size

      assert_equals: expected "32px" but got "24px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article>) - margin-top

      assert_equals: expected "21.4333333333333px" but got "18.7166666666667px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article>) - margin-bottom

      assert_equals: expected "21.4333333333333px" but got "18.7166666666667px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article>) - font-size

      assert_equals: expected "32px" but got "18.72px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article><article>) - margin-top

      assert_equals: expected "21.4333333333333px" but got "21.2833333333333px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article><article>) - margin-bottom

      assert_equals: expected "21.4333333333333px" but got "21.2833333333333px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article><article>) - font-size

      assert_equals: expected "32px" but got "16px"
      

    • FAIL [expected PASS] subtest: <h1> (in <article><article><article><article>) - margin-top

      assert_equals: expected "21.4333333333333px" but got "22.1833333333333px"
      

    • And 110 more unexpected results...
  • OK /html/rendering/non-replaced-elements/tables/form-in-tables-xhtml.xhtml
    • FAIL [expected PASS] subtest: Computed display of form inside table in xhtml should be 'block'

      assert_equals: expected "block" but got "none"
      

    • FAIL [expected PASS] subtest: Computed display of form inside thead in xhtml should be 'block'

      assert_equals: expected "block" but got "none"
      

    • FAIL [expected PASS] subtest: Computed display of form inside tbody in xhtml should be 'block'

      assert_equals: expected "block" but got "none"
      

    • FAIL [expected PASS] subtest: Computed display of form inside tfoot in xhtml should be 'block'

      assert_equals: expected "block" but got "none"
      

    • FAIL [expected PASS] subtest: Computed display of form inside tr in xhtml should be 'block'

      assert_equals: expected "block" but got "none"
      

  • OK /html/rendering/non-replaced-elements/tables/form-in-tables.html
    • PASS [expected FAIL] subtest: Computed display of form inside TABLE should be 'none'
    • PASS [expected FAIL] subtest: Computed display of form inside THEAD should be 'none'
    • PASS [expected FAIL] subtest: Computed display of form inside TBODY should be 'none'
    • PASS [expected FAIL] subtest: Computed display of form inside TFOOT should be 'none'
    • PASS [expected FAIL] subtest: Computed display of form inside TR should be 'none'
    • PASS [expected FAIL] subtest: Computed display of form inside TABLE should be 'none' (!important UA style))
    • PASS [expected FAIL] subtest: Computed display of form inside THEAD should be 'none' (!important UA style))
    • PASS [expected FAIL] subtest: Computed display of form inside TBODY should be 'none' (!important UA style))
    • PASS [expected FAIL] subtest: Computed display of form inside TFOOT should be 'none' (!important UA style))
    • PASS [expected FAIL] subtest: Computed display of form inside TR should be 'none' (!important UA style))

@github-actions

Copy link
Copy Markdown

⚠️ Try run (#25638098543) failed!

@jdm

jdm commented May 10, 2026

Copy link
Copy Markdown
Member

You can use ./mach update-wpt https://github.com/servo/servo/actions/runs/25638098543 and commit the changes to update the expected results for those tests!

avis137 added 3 commits May 11, 2026 18:37
These rules were ignored because :matches is legacy, but were removed from
the standard: whatwg/html#7867

Signed-off-by: avis137 <[email protected]>
Several rules were not used because Stylo does not implement
the legacy :matches alias.
Fixes servo#43355

Signed-off-by: avis137 <[email protected]>
@avis137
avis137 force-pushed the ua-legacy-matches branch from 58ac61e to db44faa Compare May 11, 2026 17:05
@avis137

avis137 commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Excuse me, I somehow hadn't expected there'd be any coverage. Should have foreseen it. I have updated the expected tests results.



:matches(table, thead, tbody, tfoot, tr) > form {
:is(table, thead, tbody, tfoot, tr) > form {

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.

This should be restricted to HTML documents. https://html.spec.whatwg.org/multipage/rendering.html#tables-2

Gecko uses

:is(tr, tbody, thead, tfoot, table) > form:-moz-is-html {
  /* Important: don't show these forms in HTML */
  display: none !important;
}

I guess we need to add a similar pseudo-class for Servo. It doesn't have to block this PR, but at least add a TODO comment pointing to some tracking issue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would be willing to try to implement a :-servo-is-html pseudo-class in Stylo and Servo should this be the preferred approach, but I imagine there are alternatives too, so I wouldn't want to just go ahead.
In any case, I have opened issue #44886 yesterday to track the current limitation.

@TimvdLippe TimvdLippe left a comment

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.

Approving and Oriols comment can be tackled in a follow-up PR. Thanks for investigating and fixing this!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label May 12, 2026
@TimvdLippe
TimvdLippe added this pull request to the merge queue May 12, 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 May 12, 2026
Merged via the queue into servo:main with commit 18b7009 May 12, 2026
31 checks passed
@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 May 12, 2026
@avis137
avis137 deleted the ua-legacy-matches branch May 13, 2026 10:24
@avis137
avis137 restored the ua-legacy-matches branch May 13, 2026 10:25
@avis137
avis137 deleted the ua-legacy-matches branch May 15, 2026 08:09
jdm pushed a commit to jdm/servo that referenced this pull request May 20, 2026
…vo#44920)

Follows-up servo#44837, which applied this rule in all documents. This PR
adds a separate stylesheet for HTML documents, as suggested in
servo#44886 (comment),
which turned out way simpler than I somehow had expected.

Testing: more WPT tests passing
Fixes: servo#44886, as this rule appears to be the only case where a
distinction between HTML and non-HTML documents is needed

Signed-off-by: avis137 <[email protected]>
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.

Bug with vertical positioning of nested <ul>s

5 participants