EMBED + overflow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anna

    EMBED + overflow

    Hi all.
    I don't have a very deep understanding of CSS and this question might
    sound stupid for you. Sorry for that.

    Can the overflow CSS property be applied to the embed tag?

    I have an embed tag whose source is big SVG file, whose dimensions are unknown.
    If it is bigger than the screen, the rest of the SVG is clipped and not shown.
    I would like to force the embed tag to scroll in that case.

    But setting the overflow to scroll doesn't have any effect.

    Can I set the overflow property on embed tag at all?

    Thank you very much for help.

    Anna
  • Lachlan Hunt

    #2
    Re: EMBED + overflow

    Anna wrote:[color=blue]
    > Can the overflow CSS property be applied to the embed tag?[/color]

    Since <embed> would be a replaced element, I would assume that it
    does, however, <embed> is a non-standard, proprietary Netscape element,
    so maybe that's why it doesn't.
    [color=blue]
    > I have an embed tag whose source is big SVG file, whose dimensions are unknown.[/color]

    You should be using <object> as defined in the HTML 4.01 and XHTML
    1.1 specifications, instead. However, IE doesn't support the standard
    very well, only it's proprietry extensions. You should also be able to
    use the <img/> element for SVG, when it's deleivered correctly as
    "image/svg+xml".

    --
    Lachlan Hunt

    lachlan.hunt@la chy.id.au.updat e.virus.scanners

    Remove .update.virus.s canners to email me,
    NO SPAM and NO VIRUSES!!!

    Comment

    • Jim Ley

      #3
      Re: EMBED + overflow

      On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
      <lachlan.hunt@l achy.id.au.upda te.virus.scanne rs> wrote:
      [color=blue]
      >Anna wrote:[color=green]
      >> I have an embed tag whose source is big SVG file, whose dimensions are unknown.[/color]
      >
      > You should be using <object> as defined in the HTML 4.01 and XHTML
      >1.1 specifications, instead.[/color]

      Nope, OBJECT isn't well enough defined for SVG (do links within the
      object navigate the parent or jus the object's container?) use
      IFRAME.
      [color=blue]
      > However, IE doesn't support the standard
      >very well, only it's proprietry extensions.[/color]

      IE supports OBJECT for SVG just fine.
      [color=blue]
      > You should also be able to
      >use the <img/> element for SVG, when it's deleivered correctly as
      >"image/svg+xml".[/color]

      Why should you be able to?

      Jim.
      --
      comp.lang.javas cript FAQ - http://jibbering.com/faq/

      Comment

      • Lachlan Hunt

        #4
        Re: EMBED + overflow

        Jim Ley wrote:[color=blue]
        > On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
        > <lachlan.hunt@l achy.id.au.upda te.virus.scanne rs> wrote:
        >
        >[color=green]
        >>Anna wrote:
        >>[color=darkred]
        >>>I have an embed tag whose source is big SVG file, whose dimensions are unknown.[/color]
        >>
        >> You should be using <object> as defined in the HTML 4.01 and XHTML
        >>1.1 specifications, instead.[/color]
        >
        > Nope, OBJECT isn't well enough defined for SVG (do links within the
        > object navigate the parent or jus the object's container?) use
        > IFRAME.[/color]

        Why not, I thought you could use
        <object type="image/svg+xml" data="image.svg ">
        <p>Alternate Content...</p>
        </object>

        From my experience, experementing with embedding XHTML documents
        using <object> instead of <iframe>; links within an object's content
        replace the contents of the object, not the parent/window, without
        explicit use of the target attribute.
        [color=blue][color=green]
        >> However, IE doesn't support the standard
        >>very well, only it's proprietry extensions.[/color]
        >
        > IE supports OBJECT for SVG just fine.[/color]

        What? this seem contradictory. First you said OBJECT isn't well
        defined for SVG, yet now you say IE supports it just fine. IE has
        trouble supporting things which are well defined, let alone those which
        are not.
        [color=blue][color=green]
        >> You should also be able to
        >>use the <img/> element for SVG, when it's deleivered correctly as
        >>"image/svg+xml".[/color]
        >
        >
        > Why should you be able to?[/color]

        Because SVG is an image format, which is why it should be served as
        "image/svg+xml", so I assumed using <img/> would work. I included the
        mime type, because I wasn't sure how UAs would work if it were delivered
        as "applicatio n/xml" or "text/xml". It's possible they would work fine,
        but it would mean the UA would need to read the file to determine which
        type of XML it was, whether or not it was an XML image format, such as
        SVG, and whether or not it supported the format.

        --
        Lachlan Hunt

        lachlan.hunt@la chy.id.au.updat e.virus.scanners

        Remove .update.virus.s canners to email me,
        NO SPAM and NO VIRUSES!!!

        Comment

        • loufoque

          #5
          Re: EMBED + overflow

          you could just add it in your XML markup

          Comment

          • Jim Ley

            #6
            Re: EMBED + overflow

            On Sun, 30 May 2004 15:22:36 GMT, Lachlan Hunt
            <lachlan.hunt@l achy.id.au.upda te.virus.scanne rs> wrote:
            [color=blue]
            > From my experience, experementing with embedding XHTML documents
            >using <object> instead of <iframe>; links within an object's content
            >replace the contents of the object, not the parent/window, without
            >explicit use of the target attribute.[/color]

            What even with flash?
            [color=blue]
            > What? this seem contradictory. First you said OBJECT isn't well
            >defined for SVG, yet now you say IE supports it just fine. IE has
            >trouble supporting things which are well defined, let alone those which
            >are not.[/color]

            IT supports it, and something happens when you perform a navigation,
            the problem is, it's not something that's been defined in the
            specification - hence the problem with the definition of object.
            [color=blue][color=green][color=darkred]
            >>> You should also be able to
            >>>use the <img/> element for SVG, when it's deleivered correctly as
            >>>"image/svg+xml".[/color]
            >> Why should you be able to?[/color]
            >
            > Because SVG is an image format, which is why it should be served as
            >"image/svg+xml", so I assumed using <img/> would work.[/color]

            Why is that a reasonable assumption to make? there's lots of image/*
            which aren't rendered by browsers, and there's certainly no browser
            out there which does a wide amoung of SVG that supports it under an
            img ref.

            Jim.
            --
            comp.lang.javas cript FAQ - http://jibbering.com/faq/

            Comment

            • Lachlan Hunt

              #7
              Re: EMBED + overflow

              Firstly, this is completely off topic, and has turned into a discussion
              which should probably be on c.i.w.a.html instead; however, I will still
              attempt to answer you questions.

              Jim Ley wrote:[color=blue]
              > On Sun, 30 May 2004 15:22:36 GMT, Lachlan Hunt
              > <lachlan.hunt@l achy.id.au.upda te.virus.scanne rs> wrote:
              >
              >[color=green]
              >> From my experience, experementing with embedding XHTML documents
              >>using <object> instead of <iframe>; links within an object's content
              >>replace the contents of the object, not the parent/window, without
              >>explicit use of the target attribute.[/color]
              >
              > What even with flash?[/color]

              I don't know, my experience with embedding flash, and other
              technologies is minimal, that's one reason why I explicitly mentioned
              embedded XHTML documents. Flash on other sites I've been to, tend to
              open links in the parent, so I guess it depends on what's being
              embedded. Although I'm at a loss, as to where that question came from,
              and why you asked about linking when that wasn't the topic; but anyway,
              I did my best to answer it.
              [color=blue][color=green][color=darkred]
              >>>>You should also be able to
              >>>>use the <img/> element for SVG, when it's deleivered correctly as
              >>>>"image/svg+xml".
              >>>
              >>>Why should you be able to?[/color]
              >>
              >> Because SVG is an image format, which is why it should be served as
              >>"image/svg+xml", so I assumed using <img/> would work.[/color]
              >
              >
              > Why is that a reasonable assumption to make? there's lots of image/*
              > which aren't rendered by browsers, and there's certainly no browser
              > out there which does a wide amoung of SVG that supports it under an
              > img ref.[/color]

              I never mentioned anything about how well it was or was not
              supported, I only mentioned that it should be able to be used. The HTML
              4.01 specification's definition of the <img> element [1] only provides
              examples of widely used image formats, and does not limit the formats
              which can be supported in any way. Therefore, it should be completely
              valid to embed SVG, or any other "image/*" type, using the <img/> element.

              As it turns out, now that I've had time to test the various methods
              of embedding SVG, the following lists the support using Internet
              Explorer with Adobe's SVG Viewer 3.01 plugin.

              <object>: Not Supported (standard implementation only,
              not IE's confusing proprietary
              implementation)
              <img/>: Not Supported
              <iframe>: Supported
              <frame/>: Supported (within a <frameset>)
              <embed>: Supported (but non-standard element)
              Inline: Not Supported (using the XHTML 1.1 + MathML 2.0 + SVG 1.1 DTD)

              I'd also like to know which ones work in an SVG enabled build of
              Mozilla, or Opera if there's a plugin available for it, or with any
              other plugins available for IE.

              [1] http://www.w3.org/TR/html401/struct/....html#edef-IMG

              --
              Lachlan Hunt

              lachlan.hunt@la chy.id.au.updat e.virus.scanners

              Remove .update.virus.s canners to email me,
              NO SPAM and NO VIRUSES!!!

              Comment

              • Alan J. Flavell

                #8
                Re: EMBED + overflow

                On Mon, 31 May 2004, Lachlan Hunt wrote:
                [color=blue]
                > I never mentioned anything about how well it was or was not
                > supported, I only mentioned that it should be able to be used.[/color]

                With respect - your original wording was capable of misinterpretati on.
                [color=blue]
                > The HTML 4.01 specification's definition of the <img> element [1]
                > only provides examples of widely used image formats, and does not
                > limit the formats which can be supported in any way.[/color]

                Fair comment.
                [color=blue]
                > Therefore, it should be completely valid to embed SVG, or any other
                > "image/*" type, using the <img/> element.[/color]
                ^^^^^^^^^^^^^^

                NCSA X Mosaic used to support application/postscript as an image
                format from <img...>, by the way. But, as you say, this is off-topic
                for the present group.

                Comment

                • loufoque

                  #9
                  Re: EMBED + overflow

                  Mozilla SVG-enabled build
                  <object>: Supported
                  <img/>: Not Supported
                  <iframe>: Supported
                  <frame/>: Supported (within a <frameset>)
                  <embed>: Not Supported
                  Inline: Supported (just using the svg namespace)

                  It's too bad <img/> isn't supported. Plus you can't use SVG with the
                  background: url() css property.

                  Comment

                  • Claire Tucker

                    #10
                    Re: EMBED + overflow

                    On Mon, 31 May 2004 10:42:03 GMT, Lachlan Hunt
                    <lachlan.hunt@l achy.id.au.upda te.virus.scanne rs> wrote:
                    [color=blue]
                    >
                    > As it turns out, now that I've had time to test the various methods
                    >of embedding SVG, the following lists the support using Internet
                    >Explorer with Adobe's SVG Viewer 3.01 plugin.
                    >
                    ><object>: Not Supported (standard implementation only,
                    > not IE's confusing proprietary
                    > implementation)
                    ><img/>: Not Supported
                    ><iframe>: Supported
                    ><frame/>: Supported (within a <frameset>)
                    ><embed>: Supported (but non-standard element)
                    >Inline: Not Supported (using the XHTML 1.1 + MathML 2.0 + SVG 1.1 DTD)
                    >[/color]

                    I think these results are more due to the limitations of Internet
                    Explorer's plugin interface than anything else.

                    It seems that a lot of recent new ideas have shown that IE wasn't
                    designed with future expansion in mind. Observe the image loader only
                    supporting 1-bit transparency, the fact that plugins are limited to
                    rendering in a child window in response to a non-standard OBJECT
                    element, and the quite shaky XML namespace support.

                    They designed it for how things were at the time, and aren't doing
                    anything to make things better now.

                    I suspect (but do not know) that Mozilla would (could?) do a better
                    job of all this given that its SVG support is part of Gecko rather
                    than a plugin. I don't have an SVG-enabled version handy to test,
                    however.

                    Regards,
                    -Claire

                    Comment

                    • Claire Tucker

                      #11
                      Re: EMBED + overflow

                      On Mon, 31 May 2004 14:52:14 +0200, loufoque
                      <mat.wilmots.no spam@nospam.wan adoo.fr> wrote:
                      [color=blue]
                      >Mozilla SVG-enabled build
                      ><object>: Supported
                      ><img/>: Not Supported
                      ><iframe>: Supported
                      ><frame/>: Supported (within a <frameset>)
                      ><embed>: Not Supported
                      >Inline: Supported (just using the svg namespace)
                      >
                      >It's too bad <img/> isn't supported. Plus you can't use SVG with the
                      >background: url() css property.[/color]

                      I had a hunt through Mozilla's bugtracker and found this:

                      Bug 231179: SVG Images in CSS
                      RESOLVED (dholbert) in Core - SVG. Last updated 2010-11-08.


                      I couldn't find anything for SVG images in IMG, but I imagine fixing
                      one would fix the other unless Mozilla does something very bizarre. I
                      guess one problem would be what to do with the interactive elements of
                      the graphic, if any; I suppose IMG could theoretically support them,
                      but having them interact with client-side image maps would be hairy.
                      Background images are non-interactive.

                      Then again, W3C probably thought of this and made accomodations for
                      non-interactive uses of SVG in the spec... I'm not really up on SVG
                      since I've not had much use for it thus far.

                      I think it's just the case that Mozilla's SVG support isn't finished.
                      This is probably why they don't include it in the official builds,
                      too! :)

                      Regards,
                      -Claire

                      Comment

                      Working...