<!doctype html>
<script src="../../resources/js-test.js"></script>
<div style="width: -webkit-min-content"></div>
<div style="width: -webkit-max-content"></div>
<div style="width: -webkit-fill-available"></div>
<div style="width: -webkit-fit-content"></div>
<div style="width: min-content"></div>
<div style="width: max-content"></div>
<div style="width: fit-content"></div>
<script>
description('Tests that the width keywords are respected by the parser and then returned by the style object. Should output each keyword on a line, and then a bunch of PASS comparisons for dynamic checks.');
var divs = document.querySelectorAll('div');
for (var i = 0; i < divs.length; ++i) {
debug(divs[i].style.width);
}
var KEYWORDS = ['-webkit-min-content', '-webkit-max-content', '-webkit-fill-available', '-webkit-fit-content',
'min-content', 'max-content', 'fit-content'];
var div;
KEYWORDS.forEach(function(keyword) {
div = document.createElement('div');
div.style.width = keyword;
shouldBeEqualToString('div.style.width', keyword);
});
</script>