W3C home > Mailing lists > Public > www-style@w3.org > April 2009

Re: [css3-layout] Issues/suggestions for Template Layout Module

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 28 Apr 2009 10:08:37 -0500
Message-ID: <dd0fbad0904280808h27054218j7786a51d9012a7e4@mail.gmail.com>
To: Giovanni Campagna <scampa.giovanni@gmail.com>
Cc: Bert Bos <bert@w3.org>, www-style@w3.org
On Tue, Apr 28, 2009 at 9:55 AM, Giovanni Campagna
<scampa.giovanni@gmail.com> wrote:
> 2009/4/28 Tab Atkins Jr. <jackalmage@gmail.com>:
>> Giovanni got it in one.  Both of those are exactly my reasons for
>> wanting borders on slots (and padding).  The draft essentially creates
>> a phantom container element, and I want to be able to *style* that
>> container!
> I forgot "display" (for values "table", "block" and "box") and "columns" too.

Heh, indeed.  Columns would be nice.

>>> Summing up, I think that the following properties should be allowed
>>> for ::slot: padding, border (including border-image), position (only
>>> relative) and top/left/right/bottom/z-index, page break related
>>> properties (to avoid breaking rows/columns).
>> Can you expand on that last one?  I understand the rest, but can't
>> quite get what you'd use the page-break properties for.
> I may don't want to break inside a row, like what happens for
> table-cells (that are never broken), and I cannot set
> page-break-inside on the actual elements, because the UA may split
> between two consecutive blocks (unless I set page-break-before /
> page-break-after, but I get the same problem as border, ie I need to
> find the first and the last in the slot)

Oh, I see.  I couldn't see how a page-break could occur inside of a
template.  ^_^

>>> Also I would like to see allowed by Selectors Level 4 the combinations
>>> ::slot(a)::before and ::slot(a)::after, to insert text inside slots,
>>> without inserting it into elements (that may have border / padding)
>> Wouldn't work - ::before and ::after are siblings to their superior
>> parent.  You'd need ::inside first (and have it applicable to ::slot).
> No. ::before and ::after are inside their superior, before and after
> actual content of the element
> (I made the same mistake once)

Yeah, you're right.  Don't know why I didn't remember that...

Received on Tuesday, 28 April 2009 15:09:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:36 UTC