-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fluid layout hides video when VIDEO ID begins with a numeric #2828
Comments
Seemingly, an ID starting with a numeric value is now valid in HTML5. However, it looks like in CSS, selectors / class name that begins with a numeric may not be valid. Perhaps a fix for this is to reverse the class name generated. Rather than generating |
Huh, oops. |
Sure. If it's a concern about a breaking change… perhaps the approach going forward is to generate both, rather than conditionally generate one or the other? |
Generating both might work, though, it might require us to make do blocks. /* this may fail completely if a single selector fails, at least on older browsers */
.dimensions-1my-video, .1my-video-dimensions {
...
}
/* we'll need to do this instead */
.dimensions-1my-video {
...
}
.1my-video-dimensions {
...
} |
Though, it's only needed if it actually fails. I know it's an issue around fullscreen selectors. Not sure about this case. |
Pull request added at #2829. |
Whenever the HTML
VIDEO
tag'sID
attribute begins with a numeric value, thefluid
option hides the video entirely. It looks as though the CSS rule is not generated for the element to set the proper padding.For a demo of the failure, see http://jsbin.com/huveba/2/edit?html,output
Notice that the last two videos use a
1my-video
ID attribute value (begin with a numeric).HTML5 supports element IDs that begin with numerics (different from earlier HTML versions).
The text was updated successfully, but these errors were encountered: