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: LayoutTests/svg/custom/required-feature-vs-has-feature.svg

Issue 1108293002: Make DOMImplementation.hasFeature() always return true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: windows compilefix attempt Created 5 years, 7 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 <svg xmlns="http://www.w3.org/2000/svg">
2 <title>The requiredFeatures attribute and the hasFeature() API should be in agreement</title>
3 <text x="20" y="20" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Fil ter">This text should be visible</text>
4 <text x="20" y="40" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Fon t">This text should not be visible</text>
5 <text x="20" y="60" class="Filter">This text should be visible</text>
6 <text x="20" y="80" class="Font">This text should not be visible</text>
7 <script><![CDATA[
8 var textElements = document.querySelectorAll("text[class]");
9 Array.prototype.forEach.call(textElements, function(text)
10 {
11 var feature = "http://www.w3.org/TR/SVG11/feature#" + text.getAttrib ute("class");
12 if (!document.implementation.hasFeature(feature, null)) {
13 text.parentNode.removeChild(text);
14 }
15 });
16 ]]></script>
17 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698