Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
c5e8e12c
Commit
c5e8e12c
authored
Nov 08, 2014
by
Zheming Sun
Committed by
Michał Gołębiowski
Nov 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS: Fix get upper case alpha opacity in IE8
Fixes gh-1705 Closes gh-1704
parent
3f9fda8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
css.js
src/css.js
+1
-1
testsuite.css
test/data/testsuite.css
+7
-0
css.js
test/unit/css.js
+13
-0
No files found.
src/css.js
View file @
c5e8e12c
...
...
@@ -22,7 +22,7 @@ var
// BuildExclude
getStyles
=
curCSS
.
getStyles
,
ralpha
=
/alpha
\([^
)
]
*
\)
/i
,
ropacity
=
/opacity
\s
*=
\s
*
([^
)
]
*
)
/
,
ropacity
=
/opacity
\s
*=
\s
*
([^
)
]
*
)
/
i
,
// swappable if display is none or starts with table except
// "table", "table-cell", or "table-caption"
...
...
test/data/testsuite.css
View file @
c5e8e12c
...
...
@@ -156,3 +156,10 @@ section { background:#f0f; display:block; }
#span-14824
{
display
:
block
;
}
#display
{
display
:
list-item
!important
;
}
/* fix get alpha opacity in IE8 */
.fix-get-alpha-opacity-in-ie8
{
opacity
:
0.5
;
-ms-filter
:
"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"
;
}
test/unit/css.js
View file @
c5e8e12c
...
...
@@ -1151,4 +1151,17 @@ test( "Do not throw on frame elements from css method (#15098)", 1, function() {
ok
(
false
,
"It did throw"
);
}
});
test
(
"get upper case alpha opacity in IE8"
,
1
,
function
()
{
var
div
=
document
.
createElement
(
"div"
),
fixture
=
document
.
getElementById
(
"qunit-fixture"
);
div
.
className
=
"fix-get-alpha-opacity-in-ie8"
;
fixture
.
appendChild
(
div
);
equal
(
jQuery
(
div
).
css
(
"opacity"
),
"0.5"
,
"get upper case alpha opacity in IE8 ok"
);
fixture
.
removeChild
(
div
);
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment