Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari 16.5 – 17.2: CSS declarations incorrectly ignored when in a style block with nested @supports #7149

Open
nilaallj opened this issue Sep 5, 2024 · 0 comments

Comments

@nilaallj
Copy link
Contributor

nilaallj commented Sep 5, 2024

Implementation bug in Safari 16.5 – 17.2:

div {
  color: blue;

  @supports (text-box: trim-both) {
    line-fit-edge: cap alphabetic;
  }
}

In the example above color: blue gets ignored by the browser, and so would any other declaration in a style block with a nested supports query. Authors should therefore avoid using nested supports queries if support for Safari 16.5 – 17.2 is important. I suggest adding this to the CSS Nesting page.

Webkit pull request fixing the issue: WebKit/WebKit#21726

The release notes for Safari 17.3 confirms the issue is resolved: https://developer.apple.com/documentation/safari-release-notes/safari-17_3-release-notes

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

No branches or pull requests

1 participant