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-values-4] <position> is a lie #1338

Closed
nox opened this issue May 9, 2017 · 8 comments
Closed

[css-values-4] <position> is a lie #1338

nox opened this issue May 9, 2017 · 8 comments
Labels
css-values-4 Current Work

Comments

@nox
Copy link
Contributor

nox commented May 9, 2017

The specification for <position> states that the 3-values syntax from background-position is generically forbidden from it.

This contradicts user agents in the wild, which all accept this supposedly-forbidden syntax everywhere <position> is used, such as in:

  • mask-position;
  • basic shapes' positions;
  • -radial-gradient() position.
@tabatkins tabatkins added the css-values-4 Current Work label May 9, 2017
@tabatkins
Copy link
Member

Yes, it's a recent decision (the April f2f meeting) to try and limit the usage of 3-value position as much as possible. We'll try and remove support for it from places where we can, and amend the definitions to explicitly use the 3-value-included production when proven necessary.

@nox
Copy link
Contributor Author

nox commented May 9, 2017

@tabatkins Can I assume that the use sites I mentioned will be moved to <bg-position>?

@tabatkins
Copy link
Member

As I said, if it proves necessary (that is, if compat prevents us from restricting them to the new <position>).

@nox
Copy link
Contributor Author

nox commented May 9, 2017

Mmh, interesting, the 3-values syntax cannot be ambiguous in those sites, so why try to restrict them?

@tabatkins
Copy link
Member

Because it's a learning hazard. The 3-value syntax is basically a legacy mistake; there's no good reason to have it at all, and if we could remove it from every usage site, we would.

@nox
Copy link
Contributor Author

nox commented May 31, 2017

Is there any intent from UAs to unship that syntax from the usage sites you have in mind?

@tabatkins
Copy link
Member

We're going to attempt that, yes.

@ewilligers
Copy link
Contributor

#2140 mentions progress in unshipping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-values-4 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants