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

Side by Side Diff: third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html

Issue 1837413002: Ensure that we don't allow 'none' alongside other values in content property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 <!doctype html> 1 <!doctype html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 4
5 <style> 5 <style>
6 #target::before { 6 #target1::before {
7 content: normal normal; 7 content: normal normal;
8 } 8 }
9 #target::after { 9 #target1::after {
10 content: normal normal; 10 content: normal normal;
11 } 11 }
12
13 #target2::before {
14 content: none open-quote;
15 }
16 #target2::after {
17 content: url("a") none;
18 }
12 </style> 19 </style>
13 20
14 <div id="target"></div> 21 <div id="target1"></div>
22 <div id="target2"></div>
15 23
16 <script> 24 <script>
17 test(function(){ 25 test(function(){
18 assert_equals(getComputedStyle(target, '::before').content, ''); 26 assert_equals(document.styleSheets[0].cssRules[0].style.content, '');
19 assert_equals(getComputedStyle(target, '::after').content, ''); 27 assert_equals(document.styleSheets[0].cssRules[1].style.content, '');
28 assert_equals(document.styleSheets[0].cssRules[2].style.content, '');
29 assert_equals(document.styleSheets[0].cssRules[3].style.content, '');
20 }, "Test to ensure that invalid values of content on pseudo elements are dropped by the parser"); 30 }, "Test to ensure that invalid values of content on pseudo elements are dropped by the parser");
21 </script> 31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698