web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
7.6 KiB

  1. # Changes to sanitize.css
  2. ### 10.0.0 (June 3, 2019)
  3. - Added: Opinionated page measure via `page.css`.
  4. - Added: Opinionated `border` normalization on form controls to match UA.
  5. - Added: Opinionated `font` and `letter-spacing` as `inherit` on form controls.
  6. - Added: Opinionated normalization of select controls.
  7. - Added: Opinionated normalization of placeholders in Internet Explorer.
  8. - Added: Opinionated `border` removal on iframes in all browsers.
  9. - Removed: Opinionated `border-radius` on form controls.
  10. - Removed: Opinionated `box-shadow` on form controls to match UA expectations.
  11. - Fixed: `Edge` comments without `Chrome` are are changed to `Edge 18-`.
  12. - Fixed: `Chrome` comments without `Edge` have `Edge` added.
  13. - Fixed: Nested list `dl` normalizations split.
  14. - Fixed: Logical `margin-block` normalization changed to `margin`.
  15. - Fixed: Used consistent quotes around typefaces in `typography.css`.
  16. > These fixes were brought in from normalize.css v10.1.0.
  17. ### 9.0.0 (May 16, 2019)
  18. - Removed: Opinionated removal of text shadow on text selections due to bugs in
  19. High Contrast mode.
  20. - Removed: Opinionated removal of repeating backgrounds in all browsers due to
  21. form control unstyling.
  22. - Removed: Opinionated interface typography in all browsers, which is moved to
  23. forms.css and typography.css.
  24. - Changed: Visually hidden content now uses some less aggressive selectors.
  25. - Added: Opinionated interface typography in all browsers via typography.css.
  26. - Added: Opinionated standards-like form styling in all browsers via forms.css.
  27. - Added: Opinionated removal of the grey highlight when tapping links in iOS.
  28. ### 8.0.1 (May 12, 2019)
  29. - Fixed: Typo of `browers` typo to `browsers`
  30. ### 8.0.0 (October 8, 2018)
  31. - Changed: Apply `aria-disabled` disabled styles when `[aria-disabled="true"]`
  32. - Changed: Apply `svg { fill: currentColor }` when `svg:not([fill])`
  33. - Fixed: Apply appropriate system font fallbacks for KDE Plasma
  34. ### 7.0.3 (September 4, 2018)
  35. - Fix disabled cursor
  36. ### 7.0.2 (September 4, 2018)
  37. - Fixed: Restored form control margin normalizations in Firefox
  38. - Updated: Ordering of a few rules (opinionated)
  39. ### 7.0.1 (August 25, 2018)
  40. - Added: Support the 4-space tab width in Firefox (opinionated)
  41. ### 7.0.0 (August 22, 2018)
  42. - Added: System font in all browsers (opinionated)
  43. - Added: System monospace user interface font in all browsers (opinionated)
  44. - Added: 4-space tab width in all browsers (opinionated)
  45. - Removed: Unnecessary form control margin normalizations in Firefox
  46. - Removed: Opinionated fieldset padding in all browsers
  47. - Removed: Normalzations for `::-moz-focus-inner` and `:-moz-focusring` fixed
  48. in Firefox 53 (https://bugzilla.mozilla.org/show_bug.cgi?id=140562)
  49. - Fixed: Correction of cursor style of increment and decrement buttons in
  50. Safari, not Chrome
  51. - Fixed: Text style of placeholders in Chrome, Edge, and Safari
  52. ### 6.0.0 (June 24, 2018)
  53. - Added: `word-break: break-word` to `html`
  54. - Added: `font-family: inherit` on form elements
  55. - Added: normalize.css updates
  56. - Added: `box-sizing: border-box` to `*, ::before, ::after`
  57. - Removed: `box-sizing: border-box` from `html` and `box-sizing: inherit` from
  58. `html`
  59. - Removed: `color: inherit` and `background-color: transparent` from
  60. `form`
  61. ### 5.0.0 (March 1, 2017)
  62. - Added: normalize.css v6 parity, including `summary` display
  63. - Added: form elements to inherit line-height from html
  64. - Removed: font styles on `html`
  65. - Removed: unnecessary `border-spacing` zeroing
  66. ### 4.1.0 (July 1, 2016)
  67. - Updated: The focus removal on `:hover` now targets `a:hover`
  68. ### 4.0.0 (June 20, 2016)
  69. - Added: All improvements from normalize.css v4.1.1
  70. - Added: Documentation for each opinionated feature
  71. - Added: Universal `background-repeat: no-repeat`
  72. - Removed: Reset of universal `margin` and `padding`
  73. - Removed: Inheritance of `font-size` on elements (form controls still have it)
  74. - Removed: Pre-compiled files that used variables
  75. - Updated: `abbr[title]` styled using `border-bottom` over `text-decoration`
  76. - Updated: Tests and linting
  77. #### Why are variables removed in v4?
  78. Variables were there for developers to override styles in sanitize.css without
  79. editing the original file or overriding the rule. However, you *should* override
  80. the rule so that your change is explicit, and so that your source maps
  81. accurately indicate your changes coming from your files.
  82. ### 3.3.0 (March 3, 2016)
  83. - Added: `b` and `strong` normalization
  84. - Added: `::-moz-focus-inner` normalization
  85. - Added: `hr` normalization
  86. - Added: `svg` fill as the current color
  87. - Updated: Organized rules into normalization, universal inheritance,
  88. opinionated defaults, and configurable defaults
  89. - Updated: Moved source and compiled libraries
  90. ### 3.2.0 (February 3, 2016)
  91. - Added: `selection.less`
  92. - Updated: Use `root`-prefixed values across all formats
  93. - Updated: Documentation
  94. ## 3.1.1 (February 1, 2016)
  95. - Updated: `box-sizing` variable corrected to `border-box` in sass, scss, styl
  96. ### 3.1.0 (February 1, 2016)
  97. - Added: Project configuration (.editorconfig)
  98. - Added: Style linting rules and tests
  99. - Added: `touch-action: manipulation` to remove delays during mobile tapping
  100. - Removed: `text-rendering` due to performance issues
  101. - Updated: `::selection` color variable corrected to `--selection-color`
  102. - Updated: Use direct nesting
  103. ### 3.0.0 (October 23, 2015)
  104. - Added: Normalization for **iOS 8+**
  105. - Added: `background-repeat` for all elements
  106. - Added: CONTRIBUTING.md
  107. - Updated: background color and color for `:root` previously `html`
  108. - Updated: `::selection` color to `#ffffff`
  109. - Updated: dist from CSS source using PostCSS, cssnext, and cssnano
  110. - Updated: Documentation
  111. ### 2.1.1 (October 5, 2015)
  112. - Updated: bower.json
  113. ### 2.1.1 (October 5, 2015)
  114. - Added: CSS version
  115. - Updated: Use percentage `font-size` on `:root`
  116. - Updated: Documentation
  117. - Removed: `background-color` inheritance
  118. ### 2.0.0 (September 3, 2015)
  119. - Added: Visually hidden element style `[hidden][aria-hidden="false"]`
  120. - Added: Currently updating element style `[aria-busy="true"]`
  121. - Added: Trigger element style `[aria-controls]`
  122. - Added: Color style for `html`
  123. - Added: CHANGELOG.md
  124. - Removed: Standards-breaking visually hidden style `[hidden~="screen"]`
  125. - Removed: Standards-breaking IE-proprietary style `[unselectable="on"]`
  126. - Removed: Prefix-less properties and the use of Autoprefixer
  127. - Updated: Form styling
  128. - Updated: Support for the latest **Chrome**, **Edge**, **Firefox**,
  129. and **Safari**
  130. - Updated: Licensing reference in package.json
  131. - Updated: Development dependencies
  132. - Updated: README.md and code documentation
  133. ### 1.2.0 (June 16, 2015)
  134. - Added: Control over options via Sass variables
  135. - Added: Overflow normalization on :root
  136. - Added: `font-style` inheritance
  137. - Updated: Support for the latest **Firefox**
  138. - Removed: Redundant inheritance in ::before and ::after
  139. - Removed: redundant cursor inheritance in anchor and form controls
  140. ### 1.1.0 (March 20, 2015)
  141. - Added: Form support
  142. - Updated: Normalization
  143. - Updated: Border assignment
  144. ### 1.0.0 (11 6, 2012)
  145. - Updated: Moved from normalize.css to sanitize.css
  146. > Normalize.css had and still has opinionated, developer-centric styles. For
  147. example, `sub` and `sup` elements are styled to not impact the line height of
  148. text, and `table`, `th`, and `td` omit all spacing. As Nicolas pushed
  149. Normalize.css into maturity, future preferences like these no longer had a
  150. place in the project. Almost a year later, Sanitize was officially branded.
  151. Where Normalize.css conservatively follows user agent consensus and results
  152. in more pre-styled elements, Sanitize.css liberally follows developer
  153. consensus and results in more unstyled elements.
  154. ### 0.0.0 (4 21, 2011)
  155. - Added: Normalize.css