GithubHelp home page GithubHelp logo

Comments (3)

AmeliaBR avatar AmeliaBR commented on June 27, 2024

One complication on SVG vs CSS: The CSS solution is to put the overflow text below the content-box of the element, regardless of whether or not the shape-inside fills up that entire content-box.

In SVG, at least as we're currently defining it, there is no direct equivalent of content-box. Shapes are defined relative to the view-box. Overflowing text below/beyond the view-box would normally mean overflowing it outside the SVG. It also means that multiple text elements would overflow into the same region. Which would basically be a big mess that serves neither aesthetic nor accessibility goals.

(And accessibility, to me, is the main concern: overflow will often be an issue if the user has set a minimum font size that is larger than what the designer intended. Aesthetics will inevitably bad if text is overflowing the shape, but we want it to still be readable!)

from svgwg.

nikosandronikos avatar nikosandronikos commented on June 27, 2024

So the outcome of the Sydney F2F discussion was to just overflow out of the shape for the basic case, and maybe add other options later? I'm finding the minutes to be confusing on this topic.
http://logs.csswg.org/irc.w3.org/css/2016-02-02/#e649639

from svgwg.

Tavmjong avatar Tavmjong commented on June 27, 2024

The SVG 2 spec has been update. No behavior is defined for the moment but may in the future. It is suggested that an over flow shape be given in the 'shape-inside' value.

from svgwg.

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.