Offset uniqueness in vector of ColorSteps

Regina Henschel rb.henschel at t-online.de
Sun Mar 19 22:38:31 UTC 2023


Hi Armin, hi Michael,

Michael Stahl schrieb am 16.03.2023 um 12:35:

>> (D)
>> Add
>>      <rng:zeroOrMore>
>>          <rng:ref name="svg-stop"/>
>>      </rng:zeroOrMore>
>> as child elements to <draw:gradient>
>> Add that in case <svg:stop> child elements exist, draw:start-color 
>> together with draw:start-intensity is treated as being a <svg:stop> 
>> element with svg:offset="0%" and svg:opacity="1" before all given 
>> <svg:stop> elements,
>> and draw:end-color together with draw:end-intensity is treated as 
>> being a svg:stop element with svg:offset="100%" and svg:opacity="1" 
>> after all given <svg:stop> elements,
>> and draw:gradient-step-count is treated as "0".
>> Specify that the rules in 13.2.4 SVG 1.1. ... shall be followed.
> 
> that sounds good, so the new elements would just add to the existing 
> functionality, as far as possible.
> 
> it would mean that an old LO version would display some sort of gradient 
> (ignoring the stop elements), which is probably better than no gradient?
> 

That is the same principle used in VML with the "colors" attribute, see 
OOXML part 4, section 19.1.2.5 fill. "colors" contains only the 
intermediate gradient stops, and start color is in "color" (main color) 
for position 0% and end color is in "color2" (secondary color) for 
position 100%.

Kind regards,
Regina



More information about the LibreOffice mailing list