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

Hidden fields do not have display: none when under an xmlns #209

Closed
adurity opened this issue Feb 24, 2010 · 3 comments
Closed

Hidden fields do not have display: none when under an xmlns #209

adurity opened this issue Feb 24, 2010 · 3 comments
Labels

Comments

@adurity
Copy link

adurity commented Feb 24, 2010

Under Google Chrome 4.0 on an XHTML 1.0 Strict document, the following CSS selector

html[xmlns] form.formtastic fieldset ol li { display: block; }

overrides the selector that hides hidden fields

form.formtastic fieldset ol li.hidden { display:none; }

Expected behavior is to hide the li of any hidden fields regardless of doctype.

@justinfrench
Copy link
Member

Good find! Looks like a specificity issue. I assume that this is resolved by changing the hidden rule to:

form.formtastic fieldset ol li.hidden,
html[xmlns] form.formtastic fieldset ol li.hidden { display:none; }

Please confirm and I'll patch it.

@adurity
Copy link
Author

adurity commented Mar 4, 2010

Yes, that fixes it for me.

@justinfrench
Copy link
Member

Fixed in 33262f4, closing.

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

No branches or pull requests

2 participants