Coder Social home page Coder Social logo

Comments (5)

gsnedders avatar gsnedders commented on June 26, 2024

Unless I'm being stupid, the following should match (top-left):

<svg width="200" height="100"
     xmlns="http://www.w3.org/2000/svg">
 <path d="M25,0 a25,25 0 0,0 -25,25 V100 H200 V0 z"
        fill="#dddddd" stroke="#a1a1a1" stroke-width="2" />
</svg>

from csswg-test.

gsnedders avatar gsnedders commented on June 26, 2024

Oh, using SVGs for refs for border-radius falls into the trap of SVG strokes being centred on the edge of the path and CSS borders being outside the path, which also makes drawing the border arc impossible, given in CSS the arc radii are those on the outside edge of the border.

Any ideas, @tabatkins?

from csswg-test.

gsnedders avatar gsnedders commented on June 26, 2024

I mean I guess we can test it if we have fill/stroke & background/border the same colour, but that isn't great. Maybe the best we can do with references, though?

from csswg-test.

tabatkins avatar tabatkins commented on June 26, 2024

The simple case is to make the stroke double-width, and then put the same path on top of it with an opaque fill and no stroke. I think that'll give the same geometry as a border stroke outside of the box.

from csswg-test.

wpt-issue-mover avatar wpt-issue-mover commented on June 26, 2024

This issue has been moved to web-platform-tests/wpt#5492; please continue all discussion there.

from csswg-test.

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.