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
bisect-stash-build-run.sh | |
----------8<---------- | |
#!/bin/bash | |
git stash apply || exit 125 | |
# build the test | |
# for a chromium/blink unittest, this is: | |
# ( echo n | gclient sync ) || exit 125 | |
# autoninja -C out/Debug blink_unittests || exit 125 | |
# run the test |
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> | |
<div id='diva' style="width: 300px; height: 200px; border: 0px solid rgb(0, 0, 0); background: green;">hello world</div> | |
<script> | |
function minimizeStyleAttribute(element) { | |
var originalStyleAttr = element.getAttribute('style'); | |
var originalComputedStyle = getComputedStyle(element, null); | |
// Save off the original CSSComputedStyle values in a map because the object is 'live' and | |
// modifying the style attribute will change it. | |
var originalComputedStyleMap = {}; |