Coder Social home page Coder Social logo

Comments (6)

melanierichards avatar melanierichards commented on September 3, 2024

Reopening for design / front-end review.

from demos-old.

 avatar commented on September 3, 2024

[slightly related]

if <path> element of SVG has fill-opacity property set and the element is using a marker, the opacity would be inherited by marker, even if marker element is not the child of path.

Given this code:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">

    <marker id="m1" style="overflow: visible; fill: #700;" orient="auto">
        <path style="fill-rule: evenodd; stroke: black; stroke-width: 1pt;" transform="matrix(0.8 0 0 0.8 5.70039 0.8)" d="M -2.5 -1 C -2.5 1.76 -4.74 4 -7.5 4 C -10.26 4 -12.5 1.76 -12.5 -1 C -12.5 -3.76 -10.26 -6 -7.5 -6 C -4.74 -6 -2.5 -3.76 -2.5 -1 Z" />
    </marker>

    <marker id="m2" style="overflow: visible; fill: #070;" orient="auto">
         <path style="fill-rule: evenodd; stroke: black; stroke-width: 1pt;" transform="scale(-0.8)" d="M 5.77 0 L -2.88 5 L -2.88 -5 L 5.77 0 Z" />
    </marker>

    <marker id="m3" style="overflow: visible; fill: #007;" orient="auto">
        <path style="fill-rule: evenodd; stroke: black; stroke-width: 1pt;" transform="scale(0.8)" d="M -5 -5 L -5 5 L 5 5 L 5 -5 L -5 -5 Z" />
    </marker>

    <path style="fill: none; fill-opacity: 0.75; fill-rule: evenodd; marker-end: url('#m1'); marker-mid: url('#m2'); marker-start: url('#m3'); stroke: red; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 4; stroke-opacity: 1; stroke-width: 2.5;" d="M 240 180 C 260 160 280 160 300 180 C 320 200 340 200 360 180"/>

</svg>

Result:

ie-svg-bug

Is this an undefined behavior in spec or a bug in IE10+ and Edge?

from demos-old.

melanierichards avatar melanierichards commented on September 3, 2024

@molant do you know who the original author is on this one?

from demos-old.

molant avatar molant commented on September 3, 2024

No idea :(

-----Original Message-----
From: "Melanie Richards" [email protected]
Sent: ‎6/‎19/‎2015 9:19 AM
To: "MicrosoftEdge/Demos" [email protected]
Cc: "Anton Molleda" [email protected]
Subject: Re: [Demos] Style svggradientbackgroundmaker (#19)

@molant do you know who the original author is on this one?

Reply to this email directly or view it on GitHub.

from demos-old.

 avatar commented on September 3, 2024

Actually this issue was reported on Connect quite a while back, but not sure if it is the violation of spec or undefined behavior: https://connect.microsoft.com/IE/feedback/details/772099/wrong-inheritance-with-svgs-fill-opacity.
Would be really cool if we get a repository on GitHub (say MicrosoftEdge/SpecTests) where we can submit tests cases in an organized way, for instance; input and expected output in TODO folder (like TODO/SVG/Inheritance/1/path-inheritance.[svg/png], TODO/JavaScript/.. etc.). This will probably make it easier for the teams to move tests form TODO to DONE folder once the feature is implemented or the bug is fixed, so community can follow-up on their concerns. :)
I know you guys are very busy at the moment, but please consider this in future. With that said, thank you for bringing great new features to Edge. 👍

from demos-old.

ststimac avatar ststimac commented on September 3, 2024

Closed. Duplicate of issue #161

from demos-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.