[webkit-changes] [WebKit/WebKit] 4dd84e: Fix invalid CSS state web platform test

Commit Queue noreply at github.com
Sat Dec 23 04:48:24 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4dd84e9fa371bf1f511c21bb3552fb4138334ba5
      https://github.com/WebKit/WebKit/commit/4dd84e9fa371bf1f511c21bb3552fb4138334ba5
  Author: Keith Cirkel <webkit at keithcirkel.co.uk>
  Date:   2023-12-23 (Sat, 23 Dec 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/custom-state-pseudo-class/state-css-selector-shadow-dom.tentative-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/custom-state-pseudo-class/state-css-selector-shadow-dom.tentative.html

  Log Message:
  -----------
  Fix invalid CSS state web platform test
https://bugs.webkit.org/show_bug.cgi?id=266844

Reviewed by Tim Nguyen.

This test uses the wrong CSS selector, it uses `:host:state(green)`
which is invalid, as the bare `:host` selector doesn't match on pseudo
states. Instead the `:host()` selector function should be used, so the
selector becomes `:host(:state(green))`.

* LayoutTests/imported/w3c/web-platform-tests/custom-state-pseudo-class/state-css-selector-shadow-dom.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/custom-state-pseudo-class/state-css-selector-shadow-dom.tentative.html:

Canonical link: https://commits.webkit.org/272469@main




More information about the webkit-changes mailing list