Opened 12 years ago
Closed 12 years ago
#9528 closed Bug (fixed)
box-sizing css skin bug
Reported by: | Jacques van Zuydam | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0.1 |
Component: | UI : Skins | Version: | 3.0 |
Keywords: | Cc: |
Description
I use a set box-sizing parameter of "border-box" on all my objects in CSS, using the "*" selector. This is having a negative impact on how the buttons look on the new CKEditor 4 Beta. I "fixed" it by applying an auto height to a.cke_button Obviously I know it's not conventional use of border-box, however with pixel perfect web-design it really helps.
Attachments (2)
Change History (11)
Changed 12 years ago by
Attachment: | Screen Shot 2012-10-29 at 2.06.16 PM.png added |
---|
comment:1 Changed 12 years ago by
Could you please provide sample page with CSS that is causing this problem?
comment:2 Changed 12 years ago by
- {
box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;
}
This is the CSS that is causing the error, the skin's style uses fixed heights, and border-box includes padding into the fixed height, instead of adding extra pixels to the height which is the normal way CSS works without border-sizing. I have also seen this bug on the tabs of the pop-up screens, unfortunately the page is under development and I don't have the authority to add a url for you to look at.
comment:3 Changed 12 years ago by
Milestone: | → CKEditor 4.0.1 |
---|---|
Status: | new → confirmed |
comment:4 Changed 12 years ago by
Keywords: | css box-sizing removed |
---|---|
Version: | 4.0 (GitHub - master) → 3.0 |
This is happening in both CKE 3.0. and CKE 4.0 (Not a regression) Just put the below on your page:
<style> * { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } </style>
Seems that styles work ok with default content box only.
comment:5 Changed 12 years ago by
I think that we have to add box-sizing to our CSS reset. Especially that it's becoming more and more popular as it fixes unnatural standard box model and is well supported even in IE8/9.
See "Is it safe to use?" section in http://paulirish.com/2012/box-sizing-border-box-ftw/
Changed 12 years ago by
comment:6 Changed 12 years ago by
Owner: | set to Piotrek Koszuliński |
---|---|
Status: | confirmed → assigned |
I attached sample on which issue can be verified on all supported browsers except IE7.
comment:7 Changed 12 years ago by
Component: | General → UI : Skins |
---|---|
Status: | assigned → review |
Pushed git:29b9297 for review.
comment:8 Changed 12 years ago by
Status: | review → review_passed |
---|
Hopefully, this fix covers all possible cases.
comment:9 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Masterised git:2112bc4
Screen shot of Border-Box bug