Skip to content

Commit 5160da4

Browse files
committed
Merge pull request #50 from frivoal/florian/prefix-policy-clarifications
[css-2015] Clarify why unstable features should be released both prefixed and unprefixed
2 parents cc82bd4 + 835a3c5 commit 5160da4

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

css-2015/Overview.bs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ URL: https://drafts.csswg.org/css-2015/
99
TR: https://www.w3.org/TR/CSS
1010
Editor: Tab Atkins Jr., Google, http://xanthir.com/
1111
Editor: Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact
12+
Editor: Florian Rivoal, Invited Expert, florian@rivoal.net, http://florian.rivoal.net
1213
Abstract: This document collects together into one definition all the specs that
1314
together form the current state of Cascading Style Sheets (CSS) as of 2015.
1415
The primary audience is CSS implementers, not CSS authors, as this definition
@@ -504,12 +505,40 @@ Requirements for Responsible Implementation of CSS</h2>
504505
Once the feature has stabilized and the implementation is updated to match interoperable behavior,
505506
support for the prefixed syntax should be removed.
506507

508+
Note: Anyone promoting <a>unstable</a> features to authors
509+
is urged to describe them
510+
through their standard unprefixed syntax,
511+
and to avoid encouraging the use of the prefixed syntax
512+
for any purpose other than working around implementation differences.
513+
507514
<details class=why>
508515
<summary>Why?</summary>
509516
This is recommended so that authors can use the unprefixed syntax to target all implementations,
510517
but when necessary, can target specific implementations
511518
to work around incompatibilities among implementations
512519
as they get ironed out through the standards/bugfixing process.
520+
521+
Some authors unfamiliar with this approach
522+
and accustomed to the earlier practice
523+
of shipping unstable features only under a prefix
524+
may fail to notice that using the unprefixed syntax
525+
is sufficient to target all implementations,
526+
and may therethore include the prefixed syntax
527+
of the various vendors
528+
followed by the unprefixed syntax.
529+
530+
Even in the face of this possible misuse,
531+
this approach still beneficial.
532+
The lack of a phase
533+
where only the prefixed syntax is supported
534+
greatly reduces the risk of stylesheets
535+
targetting only this prefixed syntax being written.
536+
This in turns allow UA vendors to retire
537+
their prefixed syntax once the feature is stable,
538+
without risking breaking existing content.
539+
It also reduces the need occasionally felt by by some vendors
540+
to support a feature with the prefix of another vendor,
541+
due to content depending on that syntax.
513542
</details>
514543

515544
In order to preserve the open nature of CSS as a technology,

0 commit comments

Comments
 (0)