mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Dimensions: fall back to offsetWidth/Height for inline elems
Close gh-3577 Fixes gh-3571
This commit is contained in:
@@ -10,8 +10,7 @@ define( [
|
||||
"use strict";
|
||||
|
||||
function curCSS( elem, name, computed ) {
|
||||
var width, minWidth, maxWidth, ret,
|
||||
style = elem.style;
|
||||
var width, minWidth, maxWidth, ret, style;
|
||||
|
||||
computed = computed || getStyles( elem );
|
||||
|
||||
@@ -31,6 +30,7 @@ function curCSS( elem, name, computed ) {
|
||||
// This is against the CSSOM draft spec:
|
||||
// https://drafts.csswg.org/cssom/#resolved-values
|
||||
if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
|
||||
style = elem.style;
|
||||
|
||||
// Remember the original values
|
||||
width = style.width;
|
||||
|
||||
Reference in New Issue
Block a user