Closed Bug 12403 Opened 25 years ago Closed 24 years ago

border-style: hidden should force border-width: 0

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: pierre)

References

()

Details

(Keywords: css2, testcase, Whiteboard: [nsbeta2+])

Attachments

(2 files)

DESCRIPTION: You have already (almost a year ago) made it so border-style: none
forces border-width to 0.  However, the CSS2 border-style: hidden is the same as
none everywhere except tables.  However, it's not forcing border-width to 0.

STEPS TO REPRODUCE:  Load attached test case.

ACTUAL RESULTS:  Second line is indented.

EXPECTED RESULTS:  It should not be indented

DOES NOT WORK CORRECTLY ON:
 * Linux, apprunner, 1999-08-20-13-M10
Whiteboard: [TESTCASE]
Assignee: troy → peterl
Peter, I changed the CSS rendering code to treat NS_STYLE_BORDER_STYLE_HIDDEN
just like NS_STYLE_BORDER_STYLE_NONE and I'll check that in.

It looks like several places in the style code need to change including
RecalcData(). I'll leave that to you

When you're done please assign this to Chris so he can make sure that tables are
changed accordingly
Moving non-beta 1 items to M15
Summary: border-style: hidden should force border-width: 0 → {css2} border-style: hidden should force border-width: 0
QA Contact: petersen → chrisd
Reassigning peterl's bugs to myself.
Accepting peterl's bugs that have a Target Milestone
Pushing my M15 bugs to M16
Keywords: css2
Migrating from {css2} to css2 keyword. The {css1}, {css2}, {css3} and {css-moz}
radars should now be considered deprecated in favour of keywords.
I am *really* sorry about the spam...
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Summary: {css2} border-style: hidden should force border-width: 0 → border-style: hidden should force border-width: 0
Whiteboard: [TESTCASE]
Pushing again: M18.
Target Milestone: M16 → M18
Nom. nsbeta3, recc. nsbeta3+. Impacts correctness of positioning of text in CSS 
box model. Looks like this is a matter of rolling out to a few more places in 
the code a fix that was already done elsewhere. 
Keywords: nsbeta3
Marking nsbeta2/fix in hand, it's better than "future" ;-P
CCd attinasi for review.
Keywords: nsbeta2
Whiteboard: fix in hand
Attached patch patchSplinter Review
Whiteboard: fix in hand → [fix in hand]
The patch looks excellent. I would have named it IsBorderSideVisible instead of 
IsVisibleBorderSide but maybe that is just preference... you got my r=.

So, should we get this in now so karnaze can use it in his collapsed border 
model implementation, or doesn't it matter for him?
Putting on [nsbeta2+] radar.  Patch appears low risk. Approved to checkin for 
patch as shown.
Whiteboard: [fix in hand] → [nsbeta2+]
Adding PATCH keyword for easier querying.
Keywords: patch
Fix checked in nsStyleContext.cpp
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking VERIFIED FIXED on:
- MacOS9 2000-06-30-09-M17 Commercial
- Linux6 2000-06-30-08-M17 Commercial
- Win98  2000-06-30-09-M17 Commercial
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: