W3C home > Mailing lists > Public > www-style@w3.org > January 2004

Re: Possible inadequacies in CSS3 Border-Image proposed specification

From: fantasai <fantasai@escape.com>
Date: Sun, 18 Jan 2004 02:37:03 -0500
Message-ID: <400A379F.3030401@escape.com>
To: www-style@w3.org

Vincent Starre wrote:
> I think this can best be described with ASCII-art.. (let's hope the both 
> of us use fixed-width fonts)

www-style is best read with fixed-width fonts. :)

> Ernest Cline described my intended layout best, I think (i'll add a few 
> things to make it harder to understand and more along the lines of my 
> point):
> C                                 I
> C                                 I
> .                                 .
> .                                 .
> sections D and F are repeating, while all the others are non-repeating.
> I hope that makes sense.


If you read the section describing border corner images, it says:

# The area of the corner is determined by
# the perpendicular corner radii and the
# outer border edge lines or by extending
# perpendiculars from the padding edge
# corner, whichever yields a greater area.


# For the overwrite and overflow values of
# border-fit, the image may overflow into
# the content area, but it has to be clipped
# at the opposite edge of the content area.

So, to get the layout you suggest, make your corner image include
those two bits of the top and left edges and make the rest of it
transparent. Assign it to the top left corner with border-top-left
and give it a fit of 'overwrite'.

  C     |                            I
  C_____|                            I

If you want D to tile and fit properly, then you also need to
increase the border-radius to stretch the corner area.

Received on Sunday, 18 January 2004 02:38:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:10 UTC