Skip to content

[css-conditional-3] Remove "unknown" value concept #6312

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

Merged
merged 1 commit into from
May 27, 2021

Conversation

andruud
Copy link
Member

@andruud andruud commented May 26, 2021

The production now just produces "false".

See Issue #6175.

The  production now just produces "false".

See Issue 6175.
@andruud
Copy link
Member Author

andruud commented May 26, 2021

Plan (from the Blink perspective):

  • Optimistically spec that results in "false".
  • Add use-counters to Blink to understand the compat situation. (Wait ~6 months for data to come in).
  • Verify that Webkit is willing to make this change.
  • If compat situation allows it, make the change in Blink. Otherwise, CSSWG probably needs to revisit the issue, and we'll edit the spec again with some (less desirable) compromise.

Given that interop is pretty poor currently, I'm optimistic that it will be possible to make this change.

@dbaron, @mirisuzanne

Copy link
Member

@tabatkins tabatkins left a comment

Choose a reason for hiding this comment

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

Looks great, and the plan seems spot-on as well. I won't merge since I'm not an editor, but r+

Copy link
Member

@dbaron dbaron left a comment

Choose a reason for hiding this comment

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

This looks good to me as well.

I'd note this concept was originally introduced in 206498e, although the commit message doesn't mention it at all.

@dbaron dbaron merged commit d3c2b5c into w3c:main May 27, 2021
@andruud andruud deleted the purge_unknown branch May 27, 2021 18:21
blueboxd pushed a commit to blueboxd/chromium-legacy that referenced this pull request Jun 3, 2021
The spec has been updated to remove the "unknown" value concept [1].
The  production now just results in "false".

Since support for kUnknown was a work-in-progress that never reached
the web surface, we can just remove it.

Bug: 1052274

[1] w3c/csswg-drafts#6312

Change-Id: Iec0b54e7d156518a1e5b38d8e88d7d9c8bdb3d9e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2932039
Reviewed-by: Kevin Babbitt 
Commit-Queue: Anders Hartvoll Ruud 
Cr-Commit-Position: refs/heads/master@{#888553}
@andruud
Copy link
Member Author

andruud commented Jun 8, 2021

Investigating a bit more, looks like Chromium already behaves according to the new spec text. The reason Chromium appears to evaluate not fn() to false in the demo is because not fn() is actually invalid grammar. (, requires one or more tokens).

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.

3 participants