Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: third_party/WebKit/LayoutTests/css-parser/whitespace-declaration.html

Issue 1541443002: Fix small bugs in new CSS Property parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../fast/css/getComputedStyle/resources/computed-style-listing.js">< /script>
5 <div id="target"></div>
6 <script>
7 test(function() {
8 var style = getComputedStyle(target);
9 for (var i = 0; i < style.length; i++) {
10 var property = style.item(i);
11 assert_false(CSS.supports(property, ''), property + ":;");
12 assert_false(CSS.supports(property, ' '), property + ": ;");
13 }
14 }, 'Verify that property values consisting of only whitespace are not accepted.' );
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698