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

Don't parse color functions with missing parameters. #38203

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 26, 2023

From [email protected]:
"""
This used to be correct per spec, long ago when color() also did
custom color spaces and it was reasonable to omit some components and have them auto-filled with zero.

Now custom color spaces are in CSS Color 5, and clearly distinguished
with a dashed-ident; while predefined color spaces are in CSS Color 4
and are wither an RGB space or an XYZ space. Both take 3 components, as
the grammar makes clear.

There was some leftover prose about variable number of components, not up to date with the grammar change, which I just corrected.
"""

Bug: 1410200
Change-Id: I6e1e7d49b91d91a1c61be95a837555f861a5478c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198199
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Aaron Krajeski <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1098869}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4198199 branch 3 times, most recently from c83b0a1 to 2d8541b Compare January 30, 2023 20:22
From [email protected]:
"""
This used to be correct per spec, long ago when color() also did
custom color spaces and it was reasonable to omit some components and have them auto-filled with zero.

Now custom color spaces are in CSS Color 5, and clearly distinguished
with a dashed-ident; while predefined color spaces are in CSS Color 4
and are wither an RGB space or an XYZ space. Both take 3 components, as
the grammar makes clear.

There was some leftover prose about variable number of components, not up to date with the grammar change, which I just corrected.
"""

Bug: 1410200
Change-Id: I6e1e7d49b91d91a1c61be95a837555f861a5478c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198199
Reviewed-by: Rune Lillesveen <[email protected]>
Commit-Queue: Aaron Krajeski <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1098869}
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit d52f654 into master Jan 30, 2023
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-4198199 branch January 30, 2023 22:03
foolip added a commit to foolip/wpt that referenced this pull request Feb 7, 2023
This is causing a harness error due to the same subtest name, which was
introduced by two PRs landing on the same day:
web-platform-tests#38203
web-platform-tests#38258

Also remove the 3rd argument to test_invalid_value() since it only takes
2 arguments.
@foolip
Copy link
Member

foolip commented Feb 7, 2023

Note that this in combination with #38258 resulted in a duplicate test and a harness error, see #38387.

jgraham pushed a commit that referenced this pull request Feb 7, 2023
This is causing a harness error due to the same subtest name, which was
introduced by two PRs landing on the same day:
#38203
#38258

Also remove the 3rd argument to test_invalid_value() since it only takes
2 arguments.
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 20, 2023
…ue test, a=testonly

Automatic update from web-platform-tests
Remove duplicate color(srgb) invalid value test

This is causing a harness error due to the same subtest name, which was
introduced by two PRs landing on the same day:
web-platform-tests/wpt#38203
web-platform-tests/wpt#38258

Also remove the 3rd argument to test_invalid_value() since it only takes
2 arguments.

--

wpt-commits: 7b06f9e24c3483de76e89d55dc935d4cc4e37622
wpt-pr: 38387
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 23, 2023
…ue test, a=testonly

Automatic update from web-platform-tests
Remove duplicate color(srgb) invalid value test

This is causing a harness error due to the same subtest name, which was
introduced by two PRs landing on the same day:
web-platform-tests/wpt#38203
web-platform-tests/wpt#38258

Also remove the 3rd argument to test_invalid_value() since it only takes
2 arguments.

--

wpt-commits: 7b06f9e24c3483de76e89d55dc935d4cc4e37622
wpt-pr: 38387
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
This is causing a harness error due to the same subtest name, which was
introduced by two PRs landing on the same day:
#38203
#38258

Also remove the 3rd argument to test_invalid_value() since it only takes
2 arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants