Index: LayoutTests/fast/css-intrinsic-dimensions/width-property-value.html |
diff --git a/LayoutTests/fast/css-intrinsic-dimensions/width-property-value.html b/LayoutTests/fast/css-intrinsic-dimensions/width-property-value.html |
index 96072c1f762f8b7ddc440bdf79ec8025a8828650..4e2e3583d52a23a5827a8a1498d0cc1c7feed327 100644 |
--- a/LayoutTests/fast/css-intrinsic-dimensions/width-property-value.html |
+++ b/LayoutTests/fast/css-intrinsic-dimensions/width-property-value.html |
@@ -5,6 +5,9 @@ |
<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.'); |
@@ -15,13 +18,19 @@ |
} |
var PREFIX = '-webkit-'; |
- var KEYWORDS = ['min-content', 'max-content', 'fill-available', 'fit-content']; |
+ var PREFIXED_KEYWORDS = ['min-content', 'max-content', 'fill-available', 'fit-content']; |
+ var KEYWORDS = ['min-content', 'max-content', 'fit-content']; |
var div; |
- KEYWORDS.forEach(function(keyword) { |
+ PREFIXED_KEYWORDS.forEach(function(keyword) { |
div = document.createElement('div'); |
div.style.width = PREFIX + keyword; |
shouldBeEqualToString('div.style.width', PREFIX + keyword); |
}); |
+ KEYWORDS.forEach(function(keyword) { |
+ div = document.createElement('div'); |
+ div.style.width = keyword; |
+ shouldBeEqualToString('div.style.width', keyword); |
+ }); |
</script> |