Navigation Menu

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

[css-transforms] Add one extra expected value for the float limit test on transform #19557

Closed

Conversation

BorisChiou
Copy link
Member

Based on the spec, as with integers, the first character of a number may be immediately preceded by - or + to indicate the number’s sign.

So it should be ok to not add the "+" before the integer. Gecko doesn't serialize the "+", but Blink serializes it, so we should accept two different valid results. (Note: perhaps we shouldn't add limit test here.)

@BorisChiou
Copy link
Member Author

@stephenmcgruer, could you please review this? Thanks.

@BorisChiou
Copy link
Member Author

BorisChiou commented Oct 10, 2019

@emilio would you mind reviewing this PR?

@BorisChiou
Copy link
Member Author

BorisChiou commented Oct 10, 2019

Or I could drop these limit tests. (Note: Webkit dumps something like translateX(2e+80px))

@stephenmcgruer
Copy link
Contributor

Apologies for the delay on reviewing (no excuses, just bad time management). I will look at this in the next 24 hours.

Or I could drop these limit tests. (Note: Webkit dumps something like translateX(2e+80px))

These limit tests have come up before. We have a general issue nowadays that Chromium is pushing hard to write most tests in WPT, but sometimes what we think is reasonable turns out not to be for other browsers (no idea yet if that's true for this case). That's not bad necessarily, but on multiple occasions I've come across upstream WPT PRs that have removed tests that Chromium added, without any Chromium involvement (thank you for adding me to this one! :)), and so we lose code coverage without knowing about it which is scary :(.

There's no actual action item from the above, it's just concerning me atm. @foolip as FYI

…t on transform.

Based on the [spec](https://drafts.csswg.org/css-values-4/#numbers),
as with integers, the first character of a number may be immediately
preceded by - or + to indicate the number’s sign.

So it should be ok to not add the "+" before the integer. Gecko doesn't
serialize the "+", but Blink serializes it, so we should accept two different
valid results.

Besides, WebKit uses 2e+80 as the limit. (Note: perhaps we shouldn't add limit
test here.)
@BorisChiou
Copy link
Member Author

I see. I keep the tests for now, but it'd be great if you can move these tests into Chromium repo in the future. :)

@stephenmcgruer
Copy link
Contributor

Ok, so https://drafts.csswg.org/css-values-4/#numeric-ranges confirms that its UA-dependent what the limits should be. Therefore this test should not have been WPT.

I'm going to fire up a Chromium CL to move this test (and any others I can find) back into Chromium. Sorry for the trouble.

chromium-wpt-export-bot pushed a commit that referenced this pull request Oct 11, 2019
This test tests UA-specific behavior; see
#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
@stephenmcgruer
Copy link
Contributor

stephenmcgruer commented Oct 11, 2019

They will be removed in #19646; I wasn't able to find any other limit tests that actually got exported to WPT, but please keep an eye out and feel free to fire issues my way if you do. They're easy to port back into our internal repo :)

@foolip
Copy link
Member

foolip commented Oct 11, 2019

Thanks @stephenmcgruer for moving the tests in Chromium. I have yet to see something very bad happen as a result of Chromium-originating tests being changed or removed in WPT, but the possibility is enough to make me a bit nervous. What would tooling look like that allowed us to notice when this is about to happen, or has already happened?

aarongable pushed a commit to chromium/chromium that referenced this pull request Oct 11, 2019
This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705296}
chromium-wpt-export-bot pushed a commit that referenced this pull request Oct 11, 2019
This test tests UA-specific behavior; see
#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705296}
chromium-wpt-export-bot pushed a commit that referenced this pull request Oct 11, 2019
This test tests UA-specific behavior; see
#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705296}
@BorisChiou
Copy link
Member Author

BorisChiou commented Oct 12, 2019

Thanks. Close this PR.

@BorisChiou BorisChiou closed this Oct 12, 2019
@BorisChiou
Copy link
Member Author

What would tooling look like that allowed us to notice when this is about to happen, or has already happened?

I don't know actually. Maybe try to search 3.40282e+38 in the tests? Not sure.

@stephenmcgruer
Copy link
Contributor

I think Philip is talking slightly wider than just a limit test :). There is a general issue that once browsers start to move tests to WPT (and have an automated sync), they allow external contributors to have the power to remove tests.

@foolip - my guess is this would be best detected during import from WPT --> [browser], though I'm struggling to find an obvious heuristic. We could diff the tests ran before/after the import, and generate a list of (sub)tests that have been removed... that requires manual review so might not be great. Perhaps only doing it for tests that went pass --> removed in [browser], but that still doesn't seem like a useful heuristic...

@foolip
Copy link
Member

foolip commented Oct 12, 2019

Vetting all removals does seem a bit excessive. @Hexles has written a script to figure out where a test "came from" so maybe we could use that and check removals in tests that were added in Chromium first? I expect that almost all will be OK, but maybe we can then identify what makes a removal problematic.

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 24, 2019
…ernal, a=testonly

Automatic update from web-platform-tests
Move float-cast overflow test to wpt_internal

This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705296}

--

wpt-commits: b87b15057aa1fb5d19892c0afc6aec5a801d9b03
wpt-pr: 19646
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Oct 24, 2019
…ernal, a=testonly

Automatic update from web-platform-tests
Move float-cast overflow test to wpt_internal

This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705296}

--

wpt-commits: b87b15057aa1fb5d19892c0afc6aec5a801d9b03
wpt-pr: 19646
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 27, 2019
…ernal, a=testonly

Automatic update from web-platform-tests
Move float-cast overflow test to wpt_internal

This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachenchromium.org>
Commit-Queue: Stephen McGruer <smcgruerchromium.org>
Cr-Commit-Position: refs/heads/master{#705296}

--

wpt-commits: b87b15057aa1fb5d19892c0afc6aec5a801d9b03
wpt-pr: 19646

UltraBlame original commit: 9ff77afb7e61c717a73751eb8e7da2247f377e85
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 27, 2019
…ernal, a=testonly

Automatic update from web-platform-tests
Move float-cast overflow test to wpt_internal

This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachenchromium.org>
Commit-Queue: Stephen McGruer <smcgruerchromium.org>
Cr-Commit-Position: refs/heads/master{#705296}

--

wpt-commits: b87b15057aa1fb5d19892c0afc6aec5a801d9b03
wpt-pr: 19646

UltraBlame original commit: 9ff77afb7e61c717a73751eb8e7da2247f377e85
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 27, 2019
…ernal, a=testonly

Automatic update from web-platform-tests
Move float-cast overflow test to wpt_internal

This test tests UA-specific behavior; see
web-platform-tests/wpt#19557

Bug: None
Change-Id: I650dfa3c59488ad44c4b91f70be5144fd56f6024
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856860
Reviewed-by: Xida Chen <xidachenchromium.org>
Commit-Queue: Stephen McGruer <smcgruerchromium.org>
Cr-Commit-Position: refs/heads/master{#705296}

--

wpt-commits: b87b15057aa1fb5d19892c0afc6aec5a801d9b03
wpt-pr: 19646

UltraBlame original commit: 9ff77afb7e61c717a73751eb8e7da2247f377e85
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.

None yet

5 participants