W3C home > Mailing lists > Public > www-style@w3.org > December 2013

[css3-break] fragments vs boxes (what is a box?)

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 31 Dec 2013 13:53:24 +1300
Message-ID: <CAOp6jLaBUKuceD+R--QwTLZEQDPu0mNyf-nHvd9SZVJrp3YeVg@mail.gmail.com>
To: www-style <www-style@w3.org>
In CSS 2.1, inline elements are described as splitting into multiple boxes:
I always assumed that therefore each fragment of an inline element had its
own border-box, padding-box, content-box, etc. And therefore at that point
it made sense for CSSOM-VIew to define getClientRects() to return a list of
rectangles, one rectangle per border-box. Each fragment having its own
border-box, padding-box, etc is also very useful for defining how those
fragments are laid out and how they render borders, backgrounds etc.

But I've just realized that the CSS3 Fragments spec talks about elements
--- including inline elements --- having a single 'box' that breaks into
multiple 'fragments'. So here are a couple of questions that need
-- Does each fragment have its own border-box, padding-box, etc? If so,
does it make sense for a spec to talk about "an element's border-boxes",
meaning the border-boxes of its fragments? If not, how are we to describe
the equivalent of the border-box of each fragment (the rectangle that's the
outside edge of the border of the fragment)?
-- Should we really be talking about a 'box' consisting of multiple
fragments? To me a 'box' suggests something rectangular, not something
whose geometry is a list of rectangles. If the answer is nevertheless "yes"
then we need to indicate, probably in CSS3 Fragments, that the splitting of
boxes described in CSS 2.1 is obsolete terminology. We would also need to
eliminate all references to 'CSS boxes' that expect them to have
rectangular geometry.

Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
Received on Tuesday, 31 December 2013 00:53:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC