Skip to content

Commit f3e539e

Browse files
committed
Embellish discouraged data with more detail
1 parent 4b9f9da commit f3e539e

8 files changed

+10
-0
lines changed

features/accessor-methods.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Accessor methods
22
description: The `__defineGetter__()` and `__defineSetter__()` methods of objects bind a function to a property, which is called on setting or reading the property.
33
spec: https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.prototype-legacy-accessor-methods
44
discouraged:
5+
reason: TC39 included accessor methods in Annex B of the ECMAScript specification, which covers JavaScript features with "one or more undesirable characteristics and in the absence of legacy usage would be removed."
56
according_to:
67
- https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html#sec-additional-ecmascript-features-for-web-browsers
78
# No `alternatives` because it would be `alternatives:

features/arguments-callee.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ discouraged:
66
# From note 4: "The definition of this property […] exists to ensure that it
77
# is not defined in any other manner by conforming ECMAScript
88
# implementations."
9+
reason: JavaScript strict mode prohibits accessing `arguments.callee`.
910
according_to:
1011
- https://tc39.es/ecma262/multipage/ordinary-and-exotic-objects-behaviours.html#sec-arguments-exotic-objects
1112
compat_features:

features/clip.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: The `clip` CSS property sets the visible area of an absolutely posi
33
spec: https://drafts.fxtf.org/css-masking-1/#clip-property
44
group: clipping-shapes-masking
55
discouraged:
6+
reason: The CSS Masking specification deprecated the `clip` property.
67
according_to:
78
- https://drafts.fxtf.org/css-masking-1/#clip-property
89
alternatives:

features/color-adjust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: The `color-adjust` shorthand CSS property allows multiple performan
33
spec: https://drafts.csswg.org/css-color-adjust-1/#color-adjust
44
group: print
55
discouraged:
6+
reason: The CSS Color Adjustment specification described the `color-adjust` as deprecated, to prevent authors from accidentally resetting color adjustments in unexpected contexts.
67
according_to:
78
- https://drafts.csswg.org/css-color-adjust-1/#color-adjust
89
alternatives:

features/color-contrast.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: "The `color-contrast()` CSS function picks a color from a list that
33
spec: https://drafts.csswg.org/css-color-5/#contrast-color
44
group: color-types
55
discouraged:
6+
reason: The CSS Color specification renamed `color-contrast()` to `contrast-color()`.
67
# See these CSSWG discussions
78
# https://github.com/w3c/csswg-drafts/issues/7557
89
# https://github.com/w3c/csswg-drafts/issues/7359

features/css-object-model-discouraged.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: The DOM level 2 style specification defined interfaces to access an
33
spec: https://www.w3.org/TR/DOM-Level-2-Style/
44
group: cssom
55
discouraged:
6+
reason: The DOM level 2 CSS object model was excluded from the later CSS object model (CSSOM) specification.
67
according_to:
78
- https://www.w3.org/TR/DOM-Level-2-Style/#Overview-status
89
alternatives:

features/date-get-year-set-year.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: The `getYear()` and `setYear()` methods of `Date` objects get and s
33
spec: https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html#sec-date.prototype.getyear
44
group: javascript
55
discouraged:
6+
reason: The `getYear()` and `setYear()` methods use a truncated number instead of the actual year number, known as a year 2000 problem.
67
according_to:
78
- https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html#sec-additional-ecmascript-features-for-web-browsers
89
# No `alternatives` because it would be `alternatives: [date]`. In the future

features/mutation-events.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ description: Mutation events like `DOMSubtreeModified`, `DOMNodeInserted`, or `D
44
spec: https://w3c.github.io/uievents/
55
group: dom
66
discouraged:
7+
pending_removal: true
8+
reason: Mutation events negatively impact performance and they were selected for removal from the web as part of Interop 2025.
79
according_to:
810
- https://www.w3.org/TR/2024/WD-uievents-20240906/#legacy-mutationevent-events
11+
- https://github.com/web-platform-tests/interop/issues/784
912
alternatives:
1013
- mutationobserver
1114
compat_features:

0 commit comments

Comments
 (0)