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-logical/animation-004.html is a bit buggy #14107

Closed
Loirooriol opened this issue Nov 16, 2018 · 0 comments
Closed

css-logical/animation-004.html is a bit buggy #14107

Loirooriol opened this issue Nov 16, 2018 · 0 comments

Comments

@Loirooriol
Copy link
Contributor

https://github.com/web-platform-tests/wpt/blob/master/css/css-logical/animation-004.html is supposed to accept start and end values for various properties, and then test that the computed value is half-way, because the property can be transitioned.

The problem is that the start values are added at the same time as the transition properties (and not before), so in fact the transition starts from the initial value. If the test works it's because most start values are 0.

But for example,

test(t => {
  transition(t, {
    "margin-inline-start": "100px",
  }, {
    "margin-left": "200px",
  });
  assert_equals(getComputedStyle(testEl).marginLeft, '150px');
});

will get 125px instead of 150px, a bit unexpected.

Loirooriol added a commit to Loirooriol/web-platform-tests that referenced this issue Nov 16, 2018
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