Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Fix Chrome issue (reported for Chrome 33)
Browse files Browse the repository at this point in the history
display:block for pseudo elements to ensure readablity with getComputedStyle
Close #69 #40
Thanks @MoOx
  • Loading branch information
MariusRumpf committed May 29, 2015
1 parent 6a101b1 commit 30cd9bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/salvattore.js
Expand Up @@ -565,7 +565,7 @@ self.init = function init() {
// configuration.

var css = document.createElement("style");
css.innerHTML = "[data-columns]::before{visibility:hidden;position:absolute;font-size:1px;}";
css.innerHTML = "[data-columns]::before{display:block;visibility:hidden;position:absolute;font-size:1px;}";
document.head.appendChild(css);

// scans all the grids in the document and generates
Expand Down
2 changes: 1 addition & 1 deletion dist/salvattore.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/salvattore.js
Expand Up @@ -373,7 +373,7 @@ self.init = function init() {
// configuration.

var css = document.createElement("style");
css.innerHTML = "[data-columns]::before{visibility:hidden;position:absolute;font-size:1px;}";
css.innerHTML = "[data-columns]::before{display:block;visibility:hidden;position:absolute;font-size:1px;}";
document.head.appendChild(css);

// scans all the grids in the document and generates
Expand Down

0 comments on commit 30cd9bd

Please sign in to comment.