Last active
August 29, 2015 13:57
-
-
Save ethertank/9825711 to your computer and use it in GitHub Desktop.
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
// document.body.style | |
// ※これだと length プロパティなどもふくまれてしまうので目視で削除・加工 | |
// 何か良い方法は無いものか | |
var webkitCssStyles = [ | |
"alignContent", | |
"alignItems", | |
"alignSelf", | |
"alignmentBaseline", | |
"background", | |
"backgroundAttachment", | |
"backgroundClip", | |
"backgroundColor", | |
"backgroundImage", | |
"backgroundOrigin", | |
"backgroundPosition", | |
"backgroundPositionX", | |
"backgroundPositionY", | |
"backgroundRepeat", | |
"backgroundRepeatX", | |
"backgroundRepeatY", | |
"backgroundSize", | |
"baselineShift", | |
"border", | |
"borderBottom", | |
"borderBottomColor", | |
"borderBottomLeftRadius", | |
"borderBottomRightRadius", | |
"borderBottomStyle", | |
"borderBottomWidth", | |
"borderCollapse", | |
"borderColor", | |
"borderImage", | |
"borderImageOutset", | |
"borderImageRepeat", | |
"borderImageSlice", | |
"borderImageSource", | |
"borderImageWidth", | |
"borderLeft", | |
"borderLeftColor", | |
"borderLeftStyle", | |
"borderLeftWidth", | |
"borderRadius", | |
"borderRight", | |
"borderRightColor", | |
"borderRightStyle", | |
"borderRightWidth", | |
"borderSpacing", | |
"borderStyle", | |
"borderTop", | |
"borderTopColor", | |
"borderTopLeftRadius", | |
"borderTopRightRadius", | |
"borderTopStyle", | |
"borderTopWidth", | |
"borderWidth", | |
"bottom", | |
"boxShadow", | |
"boxSizing", | |
"bufferedRendering", | |
"captionSide", | |
"clear", | |
"clip", | |
"clipPath", | |
"clipRule", | |
"color", | |
"colorInterpolation", | |
"colorInterpolationFilters", | |
"colorProfile", | |
"colorRendering", | |
"content", | |
"counterIncrement", | |
"counterReset", | |
"cssText", | |
"cursor", | |
"direction", | |
"display", | |
"dominantBaseline", | |
"emptyCells", | |
"enableBackground", | |
"fill", | |
"fillOpacity", | |
"fillRule", | |
"filter", | |
"flex", | |
"flexBasis", | |
"flexDirection", | |
"flexFlow", | |
"flexGrow", | |
"flexShrink", | |
"flexWrap", | |
"float", | |
"floodColor", | |
"floodOpacity", | |
"font", | |
"fontFamily", | |
"fontKerning", | |
"fontSize", | |
"fontStretch", | |
"fontStyle", | |
"fontVariant", | |
"fontWeight", | |
"glyphOrientationHorizontal", | |
"glyphOrientationVertical", | |
"height", | |
"imageRendering", | |
"justifyContent", | |
"kerning", | |
"left", | |
"letterSpacing", | |
"lightingColor", | |
"lineHeight", | |
"listStyle", | |
"listStyleImage", | |
"listStylePosition", | |
"listStyleType", | |
"margin", | |
"marginBottom", | |
"marginLeft", | |
"marginRight", | |
"marginTop", | |
"marker", | |
"markerEnd", | |
"markerMid", | |
"markerStart", | |
"mask", | |
"maskType", | |
"maxHeight", | |
"maxWidth", | |
"maxZoom", | |
"minHeight", | |
"minWidth", | |
"minZoom", | |
"objectFit", | |
"objectPosition", | |
"opacity", | |
"order", | |
"orientation", | |
"orphans", | |
"outline", | |
"outlineColor", | |
"outlineOffset", | |
"outlineStyle", | |
"outlineWidth", | |
"overflow", | |
"overflowWrap", | |
"overflowX", | |
"overflowY", | |
"padding", | |
"paddingBottom", | |
"paddingLeft", | |
"paddingRight", | |
"paddingTop", | |
"page", | |
"pageBreakAfter", | |
"pageBreakBefore", | |
"pageBreakInside", | |
"pointerEvents", | |
"position", | |
"quotes", | |
"resize", | |
"right", | |
"shapeRendering", | |
"size", | |
"speak", | |
"src", | |
"stopColor", | |
"stopOpacity", | |
"stroke", | |
"strokeDasharray", | |
"strokeDashoffset", | |
"strokeLinecap", | |
"strokeLinejoin", | |
"strokeMiterlimit", | |
"strokeOpacity", | |
"strokeWidth", | |
"tabSize", | |
"tableLayout", | |
"textAlign", | |
"textAnchor", | |
"textDecoration", | |
"textIndent", | |
"textLineThroughColor", | |
"textLineThroughMode", | |
"textLineThroughStyle", | |
"textLineThroughWidth", | |
"textOverflow", | |
"textOverlineColor", | |
"textOverlineMode", | |
"textOverlineStyle", | |
"textOverlineWidth", | |
"textRendering", | |
"textShadow", | |
"textTransform", | |
"textUnderlineColor", | |
"textUnderlineMode", | |
"textUnderlineStyle", | |
"textUnderlineWidth", | |
"top", | |
"touchActionDelay", | |
"transition", | |
"transitionDelay", | |
"transitionDuration", | |
"transitionProperty", | |
"transitionTimingFunction", | |
"unicodeBidi", | |
"unicodeRange", | |
"userZoom", | |
"vectorEffect", | |
"verticalAlign", | |
"visibility", | |
"webkitAnimation", | |
"webkitAnimationDelay", | |
"webkitAnimationDirection", | |
"webkitAnimationDuration", | |
"webkitAnimationFillMode", | |
"webkitAnimationIterationCount", | |
"webkitAnimationName", | |
"webkitAnimationPlayState", | |
"webkitAnimationTimingFunction", | |
"webkitAppRegion", | |
"webkitAppearance", | |
"webkitAspectRatio", | |
"webkitBackfaceVisibility", | |
"webkitBackgroundClip", | |
"webkitBackgroundComposite", | |
"webkitBackgroundOrigin", | |
"webkitBackgroundSize", | |
"webkitBorderAfter", | |
"webkitBorderAfterColor", | |
"webkitBorderAfterStyle", | |
"webkitBorderAfterWidth", | |
"webkitBorderBefore", | |
"webkitBorderBeforeColor", | |
"webkitBorderBeforeStyle", | |
"webkitBorderBeforeWidth", | |
"webkitBorderEnd", | |
"webkitBorderEndColor", | |
"webkitBorderEndStyle", | |
"webkitBorderEndWidth", | |
"webkitBorderFit", | |
"webkitBorderHorizontalSpacing", | |
"webkitBorderImage", | |
"webkitBorderRadius", | |
"webkitBorderStart", | |
"webkitBorderStartColor", | |
"webkitBorderStartStyle", | |
"webkitBorderStartWidth", | |
"webkitBorderVerticalSpacing", | |
"webkitBoxAlign", | |
"webkitBoxDecorationBreak", | |
"webkitBoxDirection", | |
"webkitBoxFlex", | |
"webkitBoxFlexGroup", | |
"webkitBoxLines", | |
"webkitBoxOrdinalGroup", | |
"webkitBoxOrient", | |
"webkitBoxPack", | |
"webkitBoxReflect", | |
"webkitBoxShadow", | |
"webkitClipPath", | |
"webkitColumnAxis", | |
"webkitColumnBreakAfter", | |
"webkitColumnBreakBefore", | |
"webkitColumnBreakInside", | |
"webkitColumnCount", | |
"webkitColumnGap", | |
"webkitColumnProgression", | |
"webkitColumnRule", | |
"webkitColumnRuleColor", | |
"webkitColumnRuleStyle", | |
"webkitColumnRuleWidth", | |
"webkitColumnSpan", | |
"webkitColumnWidth", | |
"webkitColumns", | |
"webkitFilter", | |
"webkitFontFeatureSettings", | |
"webkitFontSizeDelta", | |
"webkitFontSmoothing", | |
"webkitFontVariantLigatures", | |
"webkitHighlight", | |
"webkitHyphenateCharacter", | |
"webkitLineAlign", | |
"webkitLineBoxContain", | |
"webkitLineBreak", | |
"webkitLineClamp", | |
"webkitLineGrid", | |
"webkitLineSnap", | |
"webkitLocale", | |
"webkitLogicalHeight", | |
"webkitLogicalWidth", | |
"webkitMarginAfter", | |
"webkitMarginAfterCollapse", | |
"webkitMarginBefore", | |
"webkitMarginBeforeCollapse", | |
"webkitMarginBottomCollapse", | |
"webkitMarginCollapse", | |
"webkitMarginEnd", | |
"webkitMarginStart", | |
"webkitMarginTopCollapse", | |
"webkitMask", | |
"webkitMaskBoxImage", | |
"webkitMaskBoxImageOutset", | |
"webkitMaskBoxImageRepeat", | |
"webkitMaskBoxImageSlice", | |
"webkitMaskBoxImageSource", | |
"webkitMaskBoxImageWidth", | |
"webkitMaskClip", | |
"webkitMaskComposite", | |
"webkitMaskImage", | |
"webkitMaskOrigin", | |
"webkitMaskPosition", | |
"webkitMaskPositionX", | |
"webkitMaskPositionY", | |
"webkitMaskRepeat", | |
"webkitMaskRepeatX", | |
"webkitMaskRepeatY", | |
"webkitMaskSize", | |
"webkitMaxLogicalHeight", | |
"webkitMaxLogicalWidth", | |
"webkitMinLogicalHeight", | |
"webkitMinLogicalWidth", | |
"webkitPaddingAfter", | |
"webkitPaddingBefore", | |
"webkitPaddingEnd", | |
"webkitPaddingStart", | |
"webkitPerspective", | |
"webkitPerspectiveOrigin", | |
"webkitPerspectiveOriginX", | |
"webkitPerspectiveOriginY", | |
"webkitPrintColorAdjust", | |
"webkitRtlOrdering", | |
"webkitRubyPosition", | |
"webkitTapHighlightColor", | |
"webkitTextCombine", | |
"webkitTextDecorationsInEffect", | |
"webkitTextEmphasis", | |
"webkitTextEmphasisColor", | |
"webkitTextEmphasisPosition", | |
"webkitTextEmphasisStyle", | |
"webkitTextFillColor", | |
"webkitTextOrientation", | |
"webkitTextSecurity", | |
"webkitTextStroke", | |
"webkitTextStrokeColor", | |
"webkitTextStrokeWidth", | |
"webkitTransform", | |
"webkitTransformOrigin", | |
"webkitTransformOriginX", | |
"webkitTransformOriginY", | |
"webkitTransformOriginZ", | |
"webkitTransformStyle", | |
"webkitTransition", | |
"webkitTransitionDelay", | |
"webkitTransitionDuration", | |
"webkitTransitionProperty", | |
"webkitTransitionTimingFunction", | |
"webkitUserDrag", | |
"webkitUserModify", | |
"webkitUserSelect", | |
"webkitWritingMode", | |
"whiteSpace", | |
"widows", | |
"width", | |
"wordBreak", | |
"wordSpacing", | |
"wordWrap", | |
"writingMode", | |
"zIndex", | |
"zoom" | |
]; | |
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
/* | |
Console :https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/HTML5_element_list | |
*/ /* | |
for(var i = 0, t = document.getElementsByTagName("table"), a = []; i < t.length; i++) { | |
a.push([]); | |
for(var j = 0; j < t[i].rows.length; j++) { | |
a[i].push(t[i].rows[j].cells[0].innerText); | |
} | |
} | |
console.log(a.toString()); | |
*/ | |
var html5ElementsObj = { | |
rootElement: [ | |
"html" | |
], | |
documentMetadata: [ | |
"head", "title", "base", "link", "meta", "style" | |
], | |
scripting: [ | |
"script", "noscript" | |
] , | |
sections: [ | |
"body", "section", "nav", "article", "aside", "h1", "h2", "h3", "h4", "h5", "h6", | |
"header", "footer", "address", "main" | |
], | |
groupingContext: [ | |
"p", "hr", "pre", "blockquote", "ol", "ul", "li", "dl", "dt", "dd", | |
"figure", "figcaption", "div" | |
], | |
textlLevelSemantics: [ | |
"a", "em", "strong", "small", "s", "cite", "q", "dfn", "abbr", "data", | |
"time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", | |
"mark", "ruby", "rt", "rp", "bdi", "bdo", "span", "br", "wbr" | |
], | |
edits: [ | |
"ins", "del" | |
], | |
embeddedContent: [ | |
"img", "iframe", "embed", "object", "param", "video", "audio", "source", "track", "canvas", | |
"map", "area", "svg", "math" | |
], | |
tabularData: [ | |
"table", "caption", "colgroup", "col", "tbody", "thead", "tfoot", "tr", "td", "th" | |
], | |
forms: [ | |
"form", "fieldset", "legend", "label", "input", "button", "select", "datalist", "optgroup", "option", | |
"textarea", "keygen", "output", "progress", "meter" | |
], | |
interactiveElements: [ | |
"details", "summary", "menuitem", "menu" | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment