Closed Bug 1137148 Opened 11 years ago Closed 11 years ago

[BC] border-style: groove not applied for tables with border-collapse: collapse

Categories

(Core :: Layout: Tables, defect)

36 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: arbesulo, Assigned: bzbarsky)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150224134236 Steps to reproduce: Load the attached file in a desktop browser (does not matter under Windows or Linux, in both cases is reproduceable). Actual results: It looks like more than the solid style: "Displays a single, straight, solid line." Expected results: According to the attribute description at https://developer.mozilla.org/en-US/docs/Web/CSS/border-style : "Displays a border leading to a carved effect. It is the opposite of ridge."
Component: Untriaged → Layout: Tables
Product: Firefox → Core
What does a white groove border do in other contexts?
So this is a regression. This worked correctly in fx35 but is broken in fx36. In particular, this broke in bug 1083557 as far as I can tell. It totally changed how the painting happens here and is passing in the wrong border colors.
Blocks: 1083557
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
I'm not sure how to write a test for this, short of a != reftest (which _would_ have caught the problem, so maybe I should add that)
Attachment #8600976 - Flags: review?(jwatt)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
(In reply to Boris Zbarsky [:bz] from comment #3) > I'm not sure how to write a test for this, short of a != reftest (which > _would_ have caught the problem, so maybe I should add that) Would this one help? http://www.gtalbot.org/BrowserBugsSection/css21testsuite/Bug1137148-border-style-groove-table-cell.html --------- Just for your information. The ridge correspondent of this bug is Bug 1136183 : [BC] ridge border style on border-collapsed table
Summary: border-style: groove not applied for tables with border-collapse: collapse; → [BC] border-style: groove not applied for tables with border-collapse: collapse
> I'm not sure how to write a test for this, short of a != reftest (which > _would_ have caught the problem, so maybe I should add that) http://test.csswg.org/suites/css2.1/latest/html4/border-style-outset-002.htm was submitted and approved in CSS 2.1 test suite... although http://test.csswg.org/suites/css2.1/nightly-unstable/html4/border-style-outset-002.htm seems better.. Gérard
Blocks: 1136183
Attached patch Now with testsSplinter Review
Gérard, thanks! That seems to work pretty well.
Attachment #8634507 - Flags: review?(jwatt)
Attachment #8600976 - Attachment is obsolete: true
Attachment #8600976 - Flags: review?(jwatt)
Comment on attachment 8634507 [details] [diff] [review] Now with tests Thanks for fixing this, and sorry for the lengthy delay digging back through the breaking code.
Attachment #8634507 - Flags: review?(jwatt) → review+
Jonathan, any idea on those XXX comments about the SetColor calls?
Flags: needinfo?(jwatt)
I've not, no. I only removed calls that I could convince myself were unneeded and left the others. If the code is hard to follow in this case I'd be okay with removing them and, if anything breaks, re-adding them.
Flags: needinfo?(jwatt)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: