Skip to content

Commit f5c9a94

Browse files
foolipjamesnw
andauthored
Split text-underline-offset from text-underline-position (web-platform-dx#2652)
These properties are related, but they can be used individually. text-underline-position is significantly older in some browser. Usage is also quite different: https://chromestatus.com/metrics/css/timeline/popularity/405 https://chromestatus.com/metrics/css/timeline/popularity/661 The motivation for this is mapping the above use counters to counters for the web-features entries. They are technically easy to measure as one, but doing so seems unhelpful. Co-authored-by: James Stuckey Weber <[email protected]>
1 parent d768617 commit f5c9a94

4 files changed

+63
-40
lines changed

features/text-underline-offset.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: text-underline-offset
2+
description: "The `text-underline-offset` CSS property shifts underlines on text from the initial position by a given distance. The initial position is affected by the `text-underline-position` property."
3+
spec: https://drafts.csswg.org/css-text-decor-4/#underline-offset
4+
group: text
5+
status:
6+
compute_from: css.properties.text-underline-offset
7+
compat_features:
8+
- css.properties.text-underline-offset
9+
- css.properties.text-underline-offset.auto
10+
- css.properties.text-underline-offset.percentage
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Generated from: text-underline-offset.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2020-11-19
7+
baseline_high_date: 2023-05-19
8+
support:
9+
chrome: "87"
10+
chrome_android: "87"
11+
edge: "87"
12+
firefox: "70"
13+
firefox_android: "79"
14+
safari: "12.1"
15+
safari_ios: "12.2"
16+
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
18+
# baseline: high
19+
# baseline_low_date: 2020-11-19
20+
# baseline_high_date: 2023-05-19
21+
# support:
22+
# chrome: "87"
23+
# chrome_android: "87"
24+
# edge: "87"
25+
# firefox: "70"
26+
# firefox_android: "79"
27+
# safari: "12.1"
28+
# safari_ios: "12.2"
29+
- css.properties.text-underline-offset
30+
- css.properties.text-underline-offset.auto
31+
32+
# baseline: low
33+
# baseline_low_date: 2024-12-11
34+
# support:
35+
# chrome: "87"
36+
# chrome_android: "87"
37+
# edge: "87"
38+
# firefox: "74"
39+
# firefox_android: "79"
40+
# safari: "18.2"
41+
# safari_ios: "18.2"
42+
- css.properties.text-underline-offset.percentage

features/text-underline-position.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: Text underline position
2-
description: "The `text-underline-position` and `text-underline-offset` CSS properties set the position and distance from initial position of text underlines on text with `text-decoration: underline`."
3-
spec: https://drafts.csswg.org/css-text-decor-4/#line-decoration
1+
name: text-underline-position
2+
description: "The `text-underline-position` CSS property sets the position of underlines on text. For example, `text-underline-position: under` places the underline below the text, avoiding crossing descenders. The underline may be further adjusted by the `text-underline-offset` property."
3+
spec: https://drafts.csswg.org/css-text-decor-4/#text-underline-position-property
44
group: text
55
status:
6-
compute_from: css.properties.text-underline-offset
6+
compute_from: css.properties.text-underline-position
77
compat_features:
8-
- css.properties.text-underline-offset
9-
- css.properties.text-underline-offset.auto
10-
- css.properties.text-underline-offset.percentage
118
- css.properties.text-underline-position
129
- css.properties.text-underline-position.from-font
1310
- css.properties.text-underline-position.left

features/text-underline-position.yml.dist

+7-33
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33

44
status:
55
baseline: high
6-
baseline_low_date: 2020-11-19
7-
baseline_high_date: 2023-05-19
6+
baseline_low_date: 2020-07-28
7+
baseline_high_date: 2023-01-28
88
support:
9-
chrome: "87"
10-
chrome_android: "87"
11-
edge: "87"
12-
firefox: "70"
9+
chrome: "33"
10+
chrome_android: "33"
11+
edge: "12"
12+
firefox: "74"
1313
firefox_android: "79"
1414
safari: "12.1"
1515
safari_ios: "12.2"
1616
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
1718
# baseline: high
1819
# baseline_low_date: 2020-07-28
1920
# baseline_high_date: 2023-01-28
@@ -40,21 +41,6 @@ compat_features:
4041
# safari_ios: "12.2"
4142
- css.properties.text-underline-position.under
4243

43-
# ⬇️ Same status as overall feature ⬇️
44-
# baseline: high
45-
# baseline_low_date: 2020-11-19
46-
# baseline_high_date: 2023-05-19
47-
# support:
48-
# chrome: "87"
49-
# chrome_android: "87"
50-
# edge: "87"
51-
# firefox: "70"
52-
# firefox_android: "79"
53-
# safari: "12.1"
54-
# safari_ios: "12.2"
55-
- css.properties.text-underline-offset
56-
- css.properties.text-underline-offset.auto
57-
5844
# baseline: high
5945
# baseline_low_date: 2020-11-19
6046
# baseline_high_date: 2023-05-19
@@ -80,15 +66,3 @@ compat_features:
8066
# safari_ios: "18.2"
8167
- css.properties.text-underline-position.left
8268
- css.properties.text-underline-position.right
83-
84-
# baseline: low
85-
# baseline_low_date: 2024-12-11
86-
# support:
87-
# chrome: "87"
88-
# chrome_android: "87"
89-
# edge: "87"
90-
# firefox: "74"
91-
# firefox_android: "79"
92-
# safari: "18.2"
93-
# safari_ios: "18.2"
94-
- css.properties.text-underline-offset.percentage

0 commit comments

Comments
 (0)