aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-07-10 18:33:05 +0200
committerGitHub <noreply@github.com>2023-07-10 18:33:05 +0200
commit65b85031fb5688361c077bc04e641e4b502671e1 (patch)
tree0f2c86db330f907d8a0757622bd6520e541350a5 /test/data
parente24218758bb21bfdc296731d70f3d48ab786e5f5 (diff)
downloadjquery-65b85031fb5688361c077bc04e641e4b502671e1.tar.gz
jquery-65b85031fb5688361c077bc04e641e4b502671e1.zip
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
Diffstat (limited to 'test/data')
-rw-r--r--test/data/support/bootstrap.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/data/support/bootstrap.html b/test/data/support/bootstrap.html
new file mode 100644
index 000000000..d8e643ac2
--- /dev/null
+++ b/test/data/support/bootstrap.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <link rel="stylesheet" href="../../../external/bootstrap/bootstrap.min.css" class="stylesheet">
+</head>
+<body>
+<div>
+ <script src="../../jquery.js"></script>
+ <script src="../iframeTest.js"></script>
+ <script src="getComputedSupport.js"></script>
+</div>
+<script>
+ startIframeTest(
+ getComputedStyle( document.body ),
+ getComputedSupport( jQuery.support )
+ );
+</script>
+</body>
+</html>