├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2014 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | bs-css-hacks 2 | ============ 3 | #### Index of CSS bugs/quirks/incompatibilities that [Bootstrap](https://github.com/twbs/bootstrap) works around, as of v3.2.0.
Goal: Ensure that each of these is mentioned in at least 1 [MDN](https://developer.mozilla.org/en-US/docs/Web)-like resource.
Because a common wiki is better than a bunch of scattered blog posts. 4 | This list is based on scanning through the comments in Bootstrap's Less source code and the various warnings in Bootstrap's docs.
5 | See Also: 6 | * [Bootstrap's Wall of Browser Bugs](http://getbootstrap.com/browser-bugs/) 7 | * [List of browser bugs that jQuery works around](https://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o/) 8 | 9 | --- 10 | ## To be documented 11 | 12 | ### IE9 `` `display: table-cell` bug 13 | ``` 14 | // IE9 fubars the placeholder attribute in text inputs and the arrows on 15 | // select elements in input groups. To fix it, we float the input. 16 | ``` 17 | * Details: https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855 18 | 19 | --- 20 | ### `:hover` and/or `:focus` stickiness on mobile browsers 21 | * Bootstrap doesn't currently have any code specificially related to this, but there have been a few bug reports about this, so I figure it oughtta be mentioned in MDN. 22 | * https://github.com/google/WebFundamentals/blob/master/src/site/_en/fundamentals/input/touch/activestates/index.markdown#hover-and-focus-stickiness 23 | * Might eventually get a partial fix in Chrome: https://code.google.com/p/chromium/issues/detail?id=370155 24 | 25 | --- 26 | ## Resulting documentation improvements 27 | 28 | The following incompatibilities have been successfully documented in [MDN](https://developer.mozilla.org/en-US/docs/Web): 29 | * [`
` `min-width` legacy weirdness](https://github.com/twbs/bootstrap/issues/12359) 30 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset$compare?to=592121&from=584707 31 | * [`resize` requires `overflow` other than `visible`](https://github.com/twbs/bootstrap/pull/13600) 32 | * [Is already documented in MDN.](https://developer.mozilla.org/en-US/docs/Web/CSS/resize) The Bootstrap source code comment was in error. 33 | * Also filed https://github.com/CSSLint/csslint/issues/517 34 | * [iOS Safari `[disabled]` opacity](https://github.com/twbs/bootstrap/issues/11655) 35 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input$compare?to=588017&from=572223 36 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea$compare?to=588343&from=587245 37 | * [iOS temporal `` with `display: block` has its text vertically misaligned](https://github.com/twbs/bootstrap/issues/11266) 38 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input$compare?to=596375&from=596363 39 | * [Android Browser `