Skip to content

Commit

Permalink
CSS: Make the reliableTrDimensions support test work with Bootstrap CSS
Browse files Browse the repository at this point in the history
Bootstrap 5 includes the following CSS on the page:

```css
*,
*::before,
*::after {
  box-sizing: border-box;
}
```

That threw our `reliableTrDimensions` support test off. This change fixes the
support test and adds a unit test ensuring support test values on a page
including Bootstrap 5 CSS is the same as on a page without it.

Fixes jquerygh-5270
Ref jquerygh-5278
  • Loading branch information
mgol committed Jun 26, 2023
1 parent 141518e commit 90d30bd
Show file tree
Hide file tree
Showing 8 changed files with 12,117 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ module.exports = function( grunt ) {
destPrefix: "external"
},
files: {
"bootstrap/bootstrap.css": "bootstrap/dist/css/bootstrap.css",
"bootstrap/bootstrap.min.css": "bootstrap/dist/css/bootstrap.min.css",
"bootstrap/bootstrap.min.css.map": "bootstrap/dist/css/bootstrap.min.css.map",

"core-js/core-js.js": "core-js/client/core.min.js",
"core-js/LICENSE.txt": "core-js/LICENSE",

Expand Down

0 comments on commit 90d30bd

Please sign in to comment.