Closed Bug 295647 Opened 19 years ago Closed 19 years ago

gradients not working on single horizontal/vertical lines

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: tor, Assigned: tor)

Details

Attachments

(1 file)

 
Attachment #184635 - Flags: review?(scootermorris)
Comment on attachment 184635 [details] [diff] [review]
handle quirks of gdi+ and cairo

Looks good to me!
Attachment #184635 - Flags: review?(scootermorris) → review+
Attachment #184635 - Flags: approval1.8b3?
Comment on attachment 184635 [details] [diff] [review]
handle quirks of gdi+ and cairo

a=shaver, though some symbolic constants there would be nice.
Attachment #184635 - Flags: approval1.8b3? → approval1.8b3+
Checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
I have this issue with referenced linear gradient on stroke on Firefox 41.0.1, win7

<defs>
    <linearGradient id="linear1" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%"   stop-color="#05a"/>
      <stop offset="100%" stop-color="#0a5"/>
    </linearGradient>
</defs>

Line not visible:
<path d="M0,10L200,10" stroke="url(#linear)" stroke-width="5" fill="none"/>

Line visible with the gradient:
<path d="M0,10L200,10.01" stroke="url(#linear)" stroke-width="5" fill="none"/>
ddpm Read the last paragraph in http://www.w3.org/TR/SVG/coords.html#ObjectBoundingBox and note that the default units for gradients are objectBoundingBox.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: