Skip to content

Commit

Permalink
Restrict to Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
William Chou committed Jun 6, 2019
1 parent d7aa84f commit 19f3070
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service/viewport/viewport-binding-def.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Services} from '../../services';
import {computedStyle} from '../../style';
import {isExperimentOn} from '../../experiments';

Expand Down Expand Up @@ -216,7 +217,10 @@ export class ViewportBindingDef {
* @return {number}
*/
export function marginBottomOfLastChild(win, element) {
if (!isExperimentOn(win, 'bottom-margin-in-content-height')) {
if (
!isExperimentOn(win, 'bottom-margin-in-content-height') ||
!Services.platformFor(win).isSafari()
) {
return 0;
}
let n = element.lastElementChild;
Expand Down

0 comments on commit 19f3070

Please sign in to comment.