Closed
Bug 338554
Opened 19 years ago
Closed 12 years ago
-moz-box-sizing is not applied to a table cell
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: vitaly, Assigned: tal.aloni.il)
References
()
Details
(Keywords: dev-doc-complete, testcase)
Attachments
(6 files, 5 obsolete files)
-moz-box-sizing: border-box is applied to generic block-level element, but isn't applied to table cell. See test-case.
Tested on:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060505 Firefox/1.5.0.3
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Comment 4•13 years ago
|
||
Updated•13 years ago
|
Attachment #591594 -
Attachment mime type: text/plain → text/html
Hi,
I've already took care of table cell height in bug 248239,
This one on the other hand is a feature.
The attached patch does not do anything different unless -moz-box-sizing is set to border-box or padding-box.
Attachment #638476 -
Flags: review?(dbaron)
Attachment #638478 -
Attachment mime type: text/plain → text/html
Attachment #638479 -
Attachment mime type: text/plain → text/html
Attachment #638480 -
Attachment mime type: text/plain → text/html
Attachment #638479 -
Attachment is obsolete: true
Attachment #638484 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #638478 -
Attachment is obsolete: true
Attachment #638485 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #638480 -
Attachment is obsolete: true
Attachment #638486 -
Attachment mime type: text/plain → text/html
Comment on attachment 638476 [details] [diff] [review]
Table Cell Width Patch - v1
># User Tal Aloni <tal.aloni.il@gmail.com>
>honor -moz-box-sizing in standards mode (we ignore it in quirks mode). bug 338554
put "on table cells" somewhere in this sentence
>+ // In quirks mode, table cell width should be content-box,
>+ // but height should be border box.
>+ // because of this historic anomaly, we do not use quirk.css
>+ // (we can't speficy one value of box-sizing for width and another
>+ // for height)
>+ // For this reason, we also do not use box-sizing for just one of them,
>+ // as this may be confusing.
speficy -> specify
Also, could you format this comment a bit more neatly, capitalize "because" and put a "." at the end of that sentence, capitalize "we" and again put a "." at the end of the sentence, and wrap the entire comment at somewhere between 72 and 78 characters
r=dbaron with that; sorry for the delay getting to this
Attachment #638476 -
Flags: review?(dbaron) → review+
Comment 13•12 years ago
|
||
Note: https://developer.mozilla.org/en/CSS/Box-sizing
has a hint to this bug, needs an update
Keywords: dev-doc-needed
Assignee | ||
Comment 14•12 years ago
|
||
Attachment #638476 -
Attachment is obsolete: true
Attachment #641606 -
Flags: review+
Assignee | ||
Comment 15•12 years ago
|
||
Hi,
Since I don't have permissions to add the "checkin-needed" keyword, I would appreciate if someone would add it for me.
checkin-buddy, I've learned to use hg just for you!
Thanks!
Tal
Updated•12 years ago
|
Keywords: checkin-needed
Hardware: x86 → All
Comment 16•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f0f359a74772
And somebody please give the man editbugs privs! Also, Tal, please follow the directions below for future patches you submit. It makes life easier for those committing on your behalf. Thanks!
https://developer.mozilla.org/en/Creating_a_patch_that_can_be_checked_in
Also, should this have reftests?
Assignee | ||
Comment 17•12 years ago
|
||
(In reply to Ryan VanderMeulen from comment #16)
> Tal, please follow the directions below for future patches you submit. It makes
> life easier for those committing on your behalf.
> https://developer.mozilla.org/en/Creating_a_patch_that_can_be_checked_in
Thanks Ryan, sorry for the trouble!
This time I used TortoiseHG instead of WinMerge, so I'm making some progress.
To be honest I've had a hard time to understand from this page what's needed to be done, though perhaps I've given up too quickly.
> should this have reftests?
it does, I previously tweaked one test to have -moz-box-sizing:border-box, and other tests use the default content-box.
(There are no tests for padding-box, but that's not an official CSS property)
Updated•12 years ago
|
Flags: in-testsuite? → in-testsuite+
Comment 18•12 years ago
|
||
So this introduces a new quirks mode difference, since "box-sizing" applies to table cells in standards mode only, right?
Assignee | ||
Comment 19•12 years ago
|
||
(In reply to j.j. (inactive in 2012) from comment #18)
> "box-sizing" applies to table cells in standards mode only, right?
Yes.
> So this introduces a new quirks mode difference
quirks mode will continue to behave as it did, its behavior was not modified in any way.
However, if you specifically set -moz-box-sizing:border-box, then yes, it will not apply to quirks mode, but will apply to standards mode.
Comment 20•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
(In reply to Ryan VanderMeulen from comment #16)
> And somebody please give the man editbugs privs!
Done. See https://developer.mozilla.org/en/What_to_do_and_what_not_to_do_in_Bugzilla
(In reply to Tal Aloni from comment #17)
> (In reply to Ryan VanderMeulen from comment #16)
> > should this have reftests?
> it does, I previously tweaked one test to have -moz-box-sizing:border-box,
> and other tests use the default content-box.
> (There are no tests for padding-box, but that's not an official CSS property)
I don't see this in the patch. Which test?
Assignee | ||
Comment 22•12 years ago
|
||
(In reply to David Baron [:dbaron] from comment #21)
> I don't see this in the patch. Which test?
494667-2.html
incidentally, it now doubles as a test for border-box sizing, I already had to switch it to border-box in my previous patch because the original reftest violated the css specs, and now I fixed the width.
Comment 23•12 years ago
|
||
I mentioned it on:
https://developer-new.mozilla.org/en-US/docs/Firefox_16_for_developers
and on
https://developer-new.mozilla.org/en-US/docs/CSS/box-sizing (though this one may be obsolete once we unprefix).
Keywords: dev-doc-needed → dev-doc-complete
Comment 24•12 years ago
|
||
I think the fix for this is causing a wrapping problem in shrink-to-fit tables. (Or perhaps it's meant to work this way, but I hope not.)
In the attachment, the words are wrapped when I would not expect them to be.
Assignee | ||
Comment 25•12 years ago
|
||
Voracity,
I can confirm the issue you are seeing with the newly implemented "box-sizing:border-box".
The wrapping behavior should indeed be similar to "content-box", I am currently trying to figure this out.
Attachment #646803 -
Attachment mime type: text/plain → text/html
Comment 26•12 years ago
|
||
Please open a new bug if there are regressions.
Attachment #646803 -
Attachment is obsolete: true
Assignee | ||
Comment 27•12 years ago
|
||
voracity, The issue you reported is now bug 778413, patch is coming soon.
You need to log in
before you can comment on or make changes to this bug.
Description
•