<commit_before>// CSS Regions
// http://www.w3.org/TR/css3-regions/
// By: <NAME>

// Simple, CSS parser based
Modernizr.addTest('regions',
	Modernizr.testAllProps('flowInto')
);

// More complete, behavior based version
Modernizr.addTest('regions', function() {
	if (Modernizr.testAllProps('flowInto')) {
		var style = 'position: fixed; width: 20px; height: 20px; visibility: hidden;';
		var contentStyle = 'top: -50px; left: -50px;';
		var regionStyle = 'top: -100px; left: 0px;';

		var contentDiv = document.createElement('div');
		contentDiv.style.cssText = style + contentStyle;
		contentDiv.style[Modernizr.prefixed('flowInto')] = 'f1';
		
		var regionDiv = document.createElement('div');
		regionDiv.style.cssText = style + regionStyle;
		regionDiv.style[Modernizr.prefixed('flowFrom')] = 'f1';

		var contentRect = contentDiv.getBoundingClientRect();

		delete contentDiv;
		delete regionDiv;

		if (contentRect.left < 0) {
			return false;
		} else {
			return true;
		}
	} else {
		return false;
	}
});<commit_msg>Reduced version, based on CSS parsing only<commit_after>// CSS Regions
// http://www.w3.org/TR/css3-regions/
// By: <NAME>

// Simple, CSS parser based
Modernizr.addTest('regions',
	Modernizr.testAllProps('flowInto')
);
{'fraction_non_alphanumeric': 0.1567524115755627, 'fraction_numerical': 0.01527331189710611, 'mean_word_length': 4.32051282051282, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5261572', 'n_tokens_mistral': 474, 'n_tokens_neox': 422, 'n_words': 95}