Skip to content

[规范变更] 角度单位在 transforms 和 gradients 中可以省略 0 值单位 #14

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

Open
yisibl opened this issue Apr 13, 2017 · 1 comment

Comments

@yisibl
Copy link
Contributor

yisibl commented Apr 13, 2017

讨论:w3c/csswg-drafts#1162
规范变更:w3c/csswg-drafts@6027891

Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=569703
Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1234357

Testcase:

http://media.junglecode.net/test/linear-gradient/linear-gradient.html

.chromebug {
  background: linear-gradient(0, red, blue);
  width: 200px;
  height: 200px;
}
@yisibl
Copy link
Contributor Author

yisibl commented Mar 1, 2022

当前规范的文案做了进一步的调整:https://www.w3.org/TR/css-images-3/#linear-gradient-syntax

The unit identifier may be omitted if the is zero.

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