Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table-bordered with tbody and no content = no border #13453

Closed
eintnohick opened this issue Apr 28, 2014 · 7 comments
Closed

table-bordered with tbody and no content = no border #13453

eintnohick opened this issue Apr 28, 2014 · 7 comments

Comments

@eintnohick
Copy link

I noticed a weird behaviour when using table-bordered in Firefox...

http://jsfiddle.net/B3CWR/3/

This is a very specific issue only in FF so I'm not sure if yall want to address it but this does fix it:

thead+tbody:before{
    content:" ";
}

(The proposed fix actually makes the border-width bigger so I guess it's not a fix)

@cvrebert
Copy link
Collaborator

Confirmed. Also confirmed that such HTML validates.
(Omitting the <tbody> altogether also makes the borders appear.)

@mdo
Copy link
Member

mdo commented May 1, 2014

Well that's super odd.

@cvrebert cvrebert added this to the v3.2.1 milestone Jun 9, 2014
@mdo
Copy link
Member

mdo commented Jun 11, 2014

This sounds like a browser bug @cvrebert, no?

@cvrebert
Copy link
Collaborator

@mdo Indeed. The bug occurs in Firefox on Mac OS X, Linux, and Windows 8.1.
I don't see the same behavior in any other browser.

@cvrebert cvrebert removed this from the v3.2.1 milestone Jun 11, 2014
@cvrebert
Copy link
Collaborator

Somewhat-reduced testcase: http://jsfiddle.net/dKTvW/5/

@cvrebert
Copy link
Collaborator

Filed upstream Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1023761
Now we just need to add this to our Wall of Browser Bugs.

@cvrebert
Copy link
Collaborator

Added a relevant test to the W3C CSS test suite: w3c/csswg-test#793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants