replaced vs non replaced

Discussion in 'HTML' started by Shawn Modersohn, Jul 19, 2004.

  1. The CSS2 specification states that a replaced element is an element where
    the UA knows only the intrinsic dimensions, such as an image tag.

    Section 10.3 lists 8 situations where width is possibly affected by other
    variables.

    I am trying to gain an understanding of the first four in terms of replaced
    vs non replaced and inline vs block.

    I understand that an image tag is an example of a non-replaced element. I
    would also gather that it is an inline non-replaced element because it
    neither forms a new block of content and it is an element that the UA only
    knows the intrinsic dimensions.

    An inline replaced element might be a strong tag.

    A block level non-replaced element would be a div as an example.

    But I can't think of where I would see a block level non-replaced element,
    at least not an element that is inherently block level. What would be an
    example of an element that forms a new block of content and that the UA
    knows only the intrinsic dimensions?

    Do I understand these contexts correctly?
    Thanks.
     
    Shawn Modersohn, Jul 19, 2004
    #1
    1. Advertising

  2. "Shawn Modersohn" <> wrote in message
    news:eZJKc.16169$...
    > The CSS2 specification states that a replaced element is an element where
    > the UA knows only the intrinsic dimensions, such as an image tag.
    >
    > Section 10.3 lists 8 situations where width is possibly affected by other
    > variables.
    >
    > I am trying to gain an understanding of the first four in terms of

    replaced
    > vs non replaced and inline vs block.
    >
    > I understand that an image tag is an example of a non-replaced element. I
    > would also gather that it is an inline non-replaced element because it
    > neither forms a new block of content and it is an element that the UA only
    > knows the intrinsic dimensions.
    >
    > An inline replaced element might be a strong tag.
    >
    > A block level non-replaced element would be a div as an example.
    >
    > But I can't think of where I would see a block level non-replaced element,
    > at least not an element that is inherently block level. What would be an
    > example of an element that forms a new block of content and that the UA
    > knows only the intrinsic dimensions?
    >
    > Do I understand these contexts correctly?
    > Thanks.
    >
    >

    I meant "can't think of where I would see a block level REPLACED element",
    not non-replaced.
     
    Shawn Modersohn, Jul 19, 2004
    #2
    1. Advertising

  3. Shawn Modersohn

    rf Guest

    Shawn Modersohn wrote

    > The CSS2 specification states that a replaced element is an element where
    > the UA knows only the intrinsic dimensions, such as an image tag.


    Yep. Or, if you wish you *can* specify the dimensions.

    > Section 10.3 lists 8 situations where width is possibly affected by other
    > variables.
    >
    > I am trying to gain an understanding of the first four in terms of

    replaced
    > vs non replaced and inline vs block.
    >
    > I understand that an image tag is an example of a non-replaced element. I
    > would also gather that it is an inline non-replaced element because it
    > neither forms a new block of content and it is an element that the UA only
    > knows the intrinsic dimensions.
    >
    > An inline replaced element might be a strong tag.


    You actually have this the wrong way round. An image element is a replaced
    inline element. A strong element is a non-replaced inline element. Think
    like: the image element (consisting only if the opening tag, <img>) is
    replaced by the pixels in the image. A strong element is not replaced, its
    content (the bit between the opening and closing tag) is rendered.

    > A block level non-replaced element would be a div as an example.


    Yep. That is correct.

    > But I can't think of where I would see a block level non-replaced element,


    You mean a block level replaced element.

    > at least not an element that is inherently block level. What would be an
    > example of an element that forms a new block of content and that the UA
    > knows only the intrinsic dimensions?


    Consider a floated image.

    The image element is a replaced element. Floating the element causes it to
    become block level (as per the second paragraph in section 9.5), so it is
    now a block level replaced element.

    > Do I understand these contexts correctly?


    Apart from getting them the wrong way round, I think so :)

    --
    Cheers
    Richard.
     
    rf, Jul 19, 2004
    #3
  4. Shawn Modersohn

    Steve Pugh Guest

    "Shawn Modersohn" <> wrote:

    >The CSS2 specification states that a replaced element is an element where
    >the UA knows only the intrinsic dimensions, such as an image tag.
    >
    >Section 10.3 lists 8 situations where width is possibly affected by other
    >variables.
    >
    >I am trying to gain an understanding of the first four in terms of replaced
    >vs non replaced and inline vs block.
    >
    >I understand that an image tag is an example of a non-replaced element.


    No. An image element is a replaced element. Simple typo?

    > I
    >would also gather that it is an inline non-replaced element because it
    >neither forms a new block of content and it is an element that the UA only
    >knows the intrinsic dimensions.
    >
    >An inline replaced element might be a strong tag.


    No. A strong element is a non-replaced element.

    >A block level non-replaced element would be a div as an example.


    Correct.

    >But I can't think of where I would see a block level non-replaced element,


    I presume you mean replaced here as you've only just given an example
    of a non-replaced block.

    >at least not an element that is inherently block level. What would be an
    >example of an element that forms a new block of content and that the UA
    >knows only the intrinsic dimensions?


    There aren't any in vanilla HTML 4. But as any element can have
    display: block; as a style it's easy to transform <img> or <object>
    into a replaced so clearly the spec has to cover that eventuality.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Jul 19, 2004
    #4
  5. "Shawn Modersohn" <> wrote in message
    news:eZJKc.16169$...
    > The CSS2 specification states that a replaced element is an element where
    > the UA knows only the intrinsic dimensions, such as an image tag.
    >
    > Section 10.3 lists 8 situations where width is possibly affected by other
    > variables.
    >
    > I am trying to gain an understanding of the first four in terms of

    replaced
    > vs non replaced and inline vs block.
    >
    > I understand that an image tag is an example of a non-replaced element. I
    > would also gather that it is an inline non-replaced element because it
    > neither forms a new block of content and it is an element that the UA only
    > knows the intrinsic dimensions.
    >
    > An inline replaced element might be a strong tag.
    >
    > A block level non-replaced element would be a div as an example.
    >
    > But I can't think of where I would see a block level non-replaced element,
    > at least not an element that is inherently block level. What would be an
    > example of an element that forms a new block of content and that the UA
    > knows only the intrinsic dimensions?
    >
    > Do I understand these contexts correctly?
    > Thanks.
    >
    >


    Thanks for the replys.
     
    Shawn Modersohn, Jul 20, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rasool
    Replies:
    3
    Views:
    536
    mikeb
    Mar 3, 2004
  2. moondaddy
    Replies:
    1
    Views:
    1,795
    moondaddy
    May 4, 2004
  3. Wardeaux

    Replaced DLL does not recognized

    Wardeaux, Aug 27, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    520
    Wardeaux
    Aug 27, 2004
  4. =?Utf-8?B?Q3VydF9DIFtNVlBd?=

    asp: replaced with cc1: for all controls

    =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Nov 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    347
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=
    Nov 8, 2005
  5. tosh
    Replies:
    2
    Views:
    992
Loading...

Share This Page