- GitHub Staff
- https://gwwar.com/
- @gwwar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="wp-toolbar interface-interface-skeleton__html-container" lang="en-US"><head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta name="author" content="gwwar"> | |
<title>Flickering Text in Safari</title> | |
<style> | |
/* general */ | |
html, | |
body { | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Background Color Base Case</title> | |
<meta name="description" content="Scroll Flashing Base Case"> | |
<meta name="author" content="gwwar"> | |
<style> | |
p { | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Scroll Flashing Base Case</title> | |
<meta name="description" content="Scroll Flashing Base Case"> | |
<meta name="author" content="gwwar"> | |
<style> | |
body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getClosestStackingContext( node ) { | |
if( ! node || node.nodeName === 'HTML' ) { | |
console.log( node, 'has stacking context, reason: root' ); | |
return document.documentElement; | |
} | |
const computedStyle = getComputedStyle( node ); | |
if ( computedStyle.position === 'fixed' ) { | |
console.log( node, 'has stacking context, reason: position: fixed' ); | |
return node; | |
} else if ( computedStyle.zIndex !== 'auto' && computedStyle.position !== 'static' ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a remote branch | |
git branch branchname | |
git checkout branchname | |
git push -u origin branchname | |
#add a tag | |
git tag -a tagname -m "your tag message" | |
git push origin tagname | |
# deleting a tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Kerry Liu | |
* WTFPL | |
**/ | |
;(function(){ | |
//test for ie: turn on conditional comments | |
var jscript/*@cc_on=@_jscript_version@*/; | |
var styleProp = (jscript) ? "display" : "pointerEvents"; | |
var KoreSampl = function() {}; |