]> source.dussan.org Git - jquery.git/commit
CSS: Make the reliableTrDimensions support test work with Bootstrap CSS
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 10 Jul 2023 16:33:05 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 16:33:05 +0000 (18:33 +0200)
commit65b85031fb5688361c077bc04e641e4b502671e1
tree0f2c86db330f907d8a0757622bd6520e541350a5
parente24218758bb21bfdc296731d70f3d48ab786e5f5
CSS: Make the reliableTrDimensions support test work with Bootstrap CSS

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 are the same as on a page without it.

Fixes gh-5270
Closes gh-5278
Ref gh-5279
Gruntfile.js
package.json
src/css/support.js
test/data/support/bootstrap.html [new file with mode: 0644]
test/unit/support.js