Definition and Usage
The 'drop-initial-before-adjust' property sets the alignment point of the drop initial for the secondary connection point. This property is only effective is the value of the 'drop-initial-size' property is 'auto'.
Name: | drop-initial-before-adjust |
Value: | before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length> |
Initial: | text-before-edge |
Applies to: | ::first-letter pseudo element |
Inherited: | no |
Percentages: | refer to combined line height size as provided by drop-initial-value |
Media: | visual |
Computed value: | specified values (except for initial and inherit) |
Syntax
drop-initial-before-adjust: before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length> ;
Values
- before-edge
- The alignment point is at the intersection of the end-edge of the element and the 'before-edge' of the extended inline box of the element. This may include or not the line-height of the element, depending on the line-stacking-strategy.
- text-before-edge
- The alignment point is at the intersection of the end-edge of the element and the 'text-before-edge' baseline of the element.
- central
- The alignment point is at the intersection of the end-edge of the element and the 'central' baseline of the element.
- middle
- The alignment point is at the intersection of the end-edge of the element and the 'middle' baseline of the element.
- hanging
- The alignment point is at the intersection of the end-edge of the element and the 'hanging' baseline of the element.
- mathematical
- The alignment point is at the intersection of the end-edge of the element and the 'mathematical' baseline of the element.
- <percentage>
- The computed value of the property is this percentage multiplied by the computed 'line-height' of the element. The alignment point is on the end-edge of the inline box and is offset from the text-before-edge by the computed value. A value of '0%' makes the text-before-edge the alignment point.
- <length>
- The alignment-point is on the end-edge of the inline box. Its position along the end-edge is offset from the text-before-edge by the <length> value. A value of '0cm' makes the text-before-edge the alignment point.
Examples
.class { drop-initial-before-adjust: hanging ; }