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

Should we spec required prefixes directly in the relevant specs? #247

Open
13 tasks
tabatkins opened this issue Jun 27, 2016 · 6 comments
Open
13 tasks

Should we spec required prefixes directly in the relevant specs? #247

tabatkins opened this issue Jun 27, 2016 · 6 comments
Assignees

Comments

@tabatkins
Copy link
Member

tabatkins commented Jun 27, 2016

Consensus is that the following specs should link to Compat, because they have features mentioned in there:

  • Snapshot
  • Animations
  • Media Queries
  • Images
  • Alignment
  • Transforms
  • Backgrounds & Borders
  • UI
  • Flexbox
  • Filters
  • Masking
  • Transitions
  • Size Adjust

Some features have de-facto required prefixes. This is currently specified in the Compat Spec, maintained in WHATWG. Should we instead be specifying these directly in the spec?

My (possibly biased) reading of the issue:

Pro:

  • keeps CSS features specced in CSS specs, rather than relying on an external standards body
  • puts definitions of required features near the features they're related to, rather than in a completely separate spec - we purposely don't use errata specs for anything else!
  • admits that these are, indeed, required parts of the web platform, even if they're distasteful

Cons:

  • they're ugly I guess?
@upsuper
Copy link
Member

upsuper commented Jun 27, 2016

Another con is that that would force implementations who did not need to face web-compatibility (e.g. epub) to implement the prefixed things as well to state their conformance, which sounds unfortunate.

@SebastianZ
Copy link
Contributor

  • keeps CSS features specced in CSS specs, rather than relying on an external standards body
  • puts definitions of required features near the features they're related to, rather than in a completely separate spec - we purposely don't use errata specs for anything else!
  • admits that these are, indeed, required parts of the web platform, even if they're distasteful

Another option would be to move the specification to w3.org but keep it separated. Prefixed items may then be mentioned and linked to from the other specs.

A third con is that web authors should be encouraged to use the unprefixed items instead of the prefixed ones. (While the main audience of the specs are implementors, web authors also refer to them.)

Sebastian

@frivoal
Copy link
Collaborator

frivoal commented Jun 28, 2016

A third con is that web authors should be encouraged to use the unprefixed items instead of the prefixed ones. (While the main audience of the specs are implementors, web authors also refer to them.)

This sort of depends how you write it. Yes, if the spec talks about it at all, that makes it more likely to be known than if it doesn't, but if you keep it low key like CSS-UI does with user-select, it's hardly an encouragement.

@tabatkins
Copy link
Member Author

Yeah, the prefixes should clearly be treated like any other deprecated-but-required feature, and be defined either in a compatibility appendix (like Colors does with the system colors, or MQ with some of the deprecated MQs) or just with a low-key paragraph near the end of the section (like UI, or Images' treatment of the SVG image-rendering values).

@tabatkins
Copy link
Member Author

Group consensus on the call today is that we don't want to actually list the required prefixes in each spec, as the set does shift and change over time as compat data changes. We're also okay with WHATWG maintaining the spec for now, as long as they're willing to do so.

However, we do want to make it more obvious, so we'll:

  1. Link to the compat spec from the snapshot.
  2. Link to the compat spec in each spec that is featured in it.

@frivoal
Copy link
Collaborator

frivoal commented Jun 30, 2016

I don't really like that resolution, but I guess I can live with it. However, I have a few questions about what it means practically:

  1. Does that mean we should remove the prefixes from our specs? -webkit-user-select was removed from the compat spec once it was added to ours, as that is (as far as I understand) the way the compat spec deals with things that have graduated into their main spec

  2. What about other non standard names that don't have a prefix? The standard overflow-wrap property has a word-wrap initially proprietary name, which is now supported by multiple browsers. Except for the fact that the name doesn't include the word webkit, the situation is pretty much the same. Should we keep it in our spec, or move it to the compat spec?

  3. The compat spec does not specify how aliasing works, it just says you need to alias. Our specs say: “must treat as a shorthand” for word-wrap, and “up to the UA, but should consider doing it as a shorthand” for -webkit-user-select. Do we preserve that information? Where?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants