From 81dc33345105264b8794587f63e600be14750bd5 Mon Sep 17 00:00:00 2001
From: fantasai The following example offsets an extra thick underline
+ 1em endwards with respect to the text
+
+
+Text Decoration Line Trimming and Extension: the 'text-decoration-trim' property
+
+
+ Name: text-decoration-trim
+ Value: <
+
+ This property adjusts the start and end points of line decorations,
+ allowing the author to shorten, lengthen, or shift the decoration
+ with respect to the text.
+ It controls all text decoration lines drawn by this [=decorating box=],
+ but not any text decoration lines drawn by its ancestors.
+ If two component values are given,
+ the first applies to the [=start=] and the second to the [=end=].
+ Values have the following meanings:
+
+
+
+
+ Text decoration trimming is subject to 'box-decoration-break':
+ * for ''box-decoration-break/slice'' (the default)
+ trimming is only applied to the [=start=] edge of the first fragment
+ and the [=end=] edge of the last fragment,
+ and may accumulate to other fragments if the amount of the trim
+ is more than the length of the fragment.
+ Percentages are relative to the total length of the [=decorating box=].
+ * for ''box-decoration-break/clone''
+ trimming is applied to each fragment independently.
+
+
+ h1 {
+ text-decoration: underline 0.3em rgba(36,148,187,0.25);
+ text-decoration-trim: 1em -1em;
+ }
+
+
Text Decoration Line Continuity: the 'text-decoration-skip' shorthand and its sub-properties
@@ -971,57 +1039,6 @@ Skipping Spaces: the 'text-decoration-skip-box' property
a decorating box never draws over its own box decoration.
-
-Inset Edges: the 'text-decoration-skip-inset' property
-
-
- Name: text-decoration-skip-inset
- Value: none | auto
- Initial: none
- Applies to: all elements
- Inherited: yes
- Percentages: N/A
- Computed value: specified keyword(s)
- Animation type: discrete
-
-
- Issue: The CSSWG resolved to split 'text-decoration-skip' into sub-properties,
- but this value set has not yet been vetted by the CSSWG.
-
- This property specifies what parts of the element's box area
- any text decoration affecting the element must skip over.
- It controls all text decoration lines drawn by the element,
- but not any text decoration lines drawn by its ancestors.
- Values have the following meanings:
-
-