This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15815 - Need to clarify that everything is relative to table wrapper box, not table box
Summary: Need to clarify that everything is relative to table wrapper box, not table box
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Transforms (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Simon Fraser
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 18:48 UTC by Aryeh Gregor
Modified: 2012-03-12 20:47 UTC (History)
6 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-31 18:48:09 UTC
Tables in CSS create two boxes, a table wrapper box and a table box:

http://www.w3.org/TR/CSS21/tables.html#model

The table wrapper box contains captions and the table box does not.  Testing shows that Firefox 12.0a1 applies transforms to the table box, and IE9/Chrome 17 dev/Opera Next 12.00 alpha apply them to the table wrapper box.  E.g.:

data:text/html,<!doctype html>
<table style=transform:rotate(180deg)>
<caption>Hello</caption>
<tr><td>there
</table>

In Gecko only "there" is rotated, in other UAs the whole table is.  Also, Gecko does percentages relative to the height of the table box rather than the table wrapper box.  The spec should clarify that all this is supposed to be relative to the table wrapper box, not the table box.
Comment 1 Aryeh Gregor 2012-02-14 19:37:19 UTC
These specific tests were fixed in Gecko in <https://bugzilla.mozilla.org/show_bug.cgi?id=722777>.
Comment 2 Aryeh Gregor 2012-03-01 21:02:02 UTC
In Definitions, I suggest changing

"""
bounding box
A bounding box is the object bounding box for all SVG elements without an associated CSS layout box and the border box for all other elements.
"""

by adding the sentence "The bounding box of a table is the border box of its table wrapper box, not its table box.", with "table wrapper box" linking to <http://www.w3.org/TR/CSS21/tables.html#model>.  Any objections?
Comment 3 Aryeh Gregor 2012-03-12 20:47:20 UTC
Fixed: http://dvcs.w3.org/hg/csswg/rev/c229070a588c