quirks.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Additonal style sheet used to render HTML pages in quirks mode.
  3. *
  4. * Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
  5. * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public License
  18. * along with this library; see the file COPYING.LIB. If not, write to
  19. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  20. * Boston, MA 02110-1301, USA.
  21. *
  22. */
  23. /* Give floated images margins of 3px */
  24. img[align="left"] {
  25. margin-right: 3px;
  26. }
  27. img[align="right"] {
  28. margin-left: 3px;
  29. }
  30. /* Tables reset both line-height and white-space in quirks mode. */
  31. /* Compatible with WinIE. Note that font-family is *not* reset. */
  32. table {
  33. white-space: normal;
  34. line-height: normal;
  35. font-weight: normal;
  36. font-size: medium;
  37. font-variant: normal;
  38. font-style: normal;
  39. color: -webkit-text;
  40. text-align: start;
  41. }
  42. /* This will apply only to text fields, since all other inputs already use border box sizing */
  43. input:not([type=image]), textarea {
  44. box-sizing: border-box;
  45. }
  46. /* Set margin-bottom for form element in quirks mode. */
  47. /* Compatible with Gecko. (Doing this only for quirks mode is a fix for bug 17696.) */
  48. form {
  49. margin-bottom: 1em
  50. }