[webkit-changes] [WebKit/WebKit] 87011d: Update inverted-colors UA styles to match spec

Luke Warlow noreply at github.com
Sat Jul 22 18:00:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 87011db312c8a25aa85d0b991cc4fd19870c789d
      https://github.com/WebKit/WebKit/commit/87011db312c8a25aa85d0b991cc4fd19870c789d
  Author: Luke Warlow <luke at warlow.dev>
  Date:   2023-07-22 (Sat, 22 Jul 2023)

  Changed paths:
    A LayoutTests/fast/media/mq-inverted-colors-ua-styles-expected.txt
    A LayoutTests/fast/media/mq-inverted-colors-ua-styles-img-expected.html
    A LayoutTests/fast/media/mq-inverted-colors-ua-styles-img.html
    A LayoutTests/fast/media/mq-inverted-colors-ua-styles.html
    M Source/WebCore/css/html.css

  Log Message:
  -----------
  Update inverted-colors UA styles to match spec
https://bugs.webkit.org/show_bug.cgi?id=259416

Reviewed by Tim Nguyen.

Updated the style for the inverted-colors media query in html.css
the new styles are taken directly from the spec.

Spec: https://drafts.csswg.org/mediaqueries-5/#inverted

* LayoutTests/fast/media/mq-inverted-colors-ua-styles-expected.txt: Added.
* LayoutTests/fast/media/mq-inverted-colors-ua-styles-img-expected.html: Added.
* LayoutTests/fast/media/mq-inverted-colors-ua-styles-img.html: Added.
* LayoutTests/fast/media/mq-inverted-colors-ua-styles.html: Added.
* Source/WebCore/css/html.css:
(@media (inverted-colors) img:not(picture>img), picture, video):
(@media (inverted-colors) img, picture, video): Deleted.

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




More information about the webkit-changes mailing list