Skip to content

Commit 36ad83e

Browse files
committed
[css-text-decor-4] Fix the treatment of % in stroke-dasharray/etc to match SVG2.
1 parent ca4319e commit 36ad83e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

css-text-decor-4/Overview.bs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Dashed Strokes {#stroke-dashes}
427427
Initial: none
428428
Applies to: inline boxes and <a>SVG shapes</a>
429429
Inherited: yes
430-
Percentages: relative to the <a>scaled diagonal</a> of the containing block
430+
Percentages: relative to the length of the stroked path
431431
Media: visual
432432
Computed value: as specified
433433
Animatable: as repeated list of length, percentage or calc
@@ -450,10 +450,6 @@ Dashed Strokes {#stroke-dashes}
450450
If all values are zero, it is treated as ''stroke-dasharray/none''.
451451
</dl>
452452

453-
The <dfn>scaled diagonal</dfn> of a rectangle is the length of its diagonal divided by &sqrt;2.
454-
455-
Issue: Percentages are stupid. Can we replace this definition with “relative to 'stroke-width'”?
456-
457453
Issue: SVG allows comma separation. Do we need to allow this in CSS for back-compat? (Please say no.)
458454

459455
### Stroke Dash Start Position: the 'stroke-dashoffset' property ### {#stroke-dashoffset}
@@ -464,7 +460,7 @@ Dashed Strokes {#stroke-dashes}
464460
Initial: 0
465461
Applies to: inline boxes and <a>SVG shapes</a>
466462
Inherited: yes
467-
Percentages: relative to the <a>scaled diagonal</a> of the containing block
463+
Percentages: relative to the length of the stroked path
468464
Media: visual
469465
Computed value: as specified
470466
Animatable: as repeated list of integers

0 commit comments

Comments
 (0)