mdn / browser-compat-data

This repository contains compatibility data for Web technologies as displayed on MDN
https://developer.mozilla.org
Creative Commons Zero v1.0 Universal
4.95k stars 1.98k forks source link

css.at-rules.media.prefers-color-scheme - Chrome and Edge now "Respects color-scheme inherited from parent" #24806

Open axel-havukangas-tt opened 7 hours ago

axel-havukangas-tt commented 7 hours ago

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

The "Respects color-scheme inherited from parent" line states no support in Chrome and Edge, but at least version 130 of the browser seems to support the feature.

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

I would assume that at least version 130 of chrome and edge would be marked as supporting the feature.

Did you test this? If so, how?

Using the example in https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme#inherited_color_scheme_in_embedded_elements I verified that the last circle is filled with purple on the latest versions of chrome and edge. Safari still renders it as blue.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

Strangely there doesn't seem to be any mentions about this in recent chrome releases.

Do you have anything more you want to share?

Screenshot 2024-10-23 at 15 54 17

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

MDN metadata

MDN page report details * Query: `css.at-rules.media.prefers-color-scheme` * Report started: 2024-10-23T12:28:50.413Z
axel-havukangas-tt commented 7 hours ago

Found a mention of this feature in chromium commit at https://github.com/chromium/chromium/commit/e91a3882507def1b0e5c38627fd78ae58d91b602. Seems to have been included already in version 129

caugner commented 6 hours ago

@axel-havukangas-tt Could you share the Playground (click on "Share"), or the test code you used?