Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9f7726

Browse files
authored
Tests: Disable CSS Custom Properties tests in old Safari/iOS
Safari 9.1 & iOS 9.3 support CSS custom properties but that supportis buggy which crashes our tests. Disable those tests there.Seehttps://caniuse.com/css-variablesClosesgh-4966
1 parenta51eec7 commite9f7726

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎test/unit/css.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,14 +1732,24 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(
17321732

17331733
(function(){
17341734
varsupportsCssVars,
1735+
oldSafari=/iphoneos9_/i.test(navigator.userAgent)||
1736+
/\b9\.\d+(\.\d+)*safari/i.test(navigator.userAgent),
17351737
elem=jQuery("<div>").appendTo(document.body),
17361738
div=elem[0];
17371739

17381740
div.style.setProperty("--prop","value");
17391741
supportsCssVars=!!getComputedStyle(div).getPropertyValue("--prop");
17401742
elem.remove();
17411743

1742-
QUnit[supportsCssVars ?"test" :"skip"]("css(--customProperty)",function(assert){
1744+
QUnit[
1745+
1746+
// Support: iOS 9.3 only, Safari 9.1 only
1747+
// Safari 9.1 & iOS 9.3 support CSS custom properties but that support
1748+
// is buggy which crashes our tests.
1749+
supportsCssVars&&!oldSafari ?
1750+
"test" :
1751+
"skip"
1752+
]("css(--customProperty)",function(assert){
17431753
jQuery("#qunit-fixture").append(
17441754
"<style>\n"+
17451755
" .test__customProperties {\n"+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp