mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
Automatic update from web-platform-testsRemove duplicate CSS tests that exist in WPT For css-style-attribute-modifications.html and child-indexed-pseudo-class.html, copy our local modifications over to the shared WPT copy. For the others, they are exact duplicates of tests in external/wpt/css/css-logical. Remove these duplicate tests. Change-Id: I1c5b461315efd8f75ed1a636328b877550eeac25 Reviewed-on: https://chromium-review.googlesource.com/1016163 Reviewed-by: Robert Ma <robertma@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Chris Nardi <cnardi@chromium.org> Cr-Commit-Position: refs/heads/master@{#551978} -- wpt-commits: c51dc5e454e371d2e3c4293aecf6c4583188efa5 wpt-pr: 10514
16 lines
630 B
HTML
16 lines
630 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
|
|
<link rel="help" href="https://drafts.csswg.org/cssom/#the-elementcssinlinestyle-interface">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="test" style="color: red"></div>
|
|
<script>
|
|
test(function() {
|
|
var el = document.getElementById("test");
|
|
el.style.color = "";
|
|
assert_true(el.hasAttribute("style"));
|
|
|
|
el.removeAttribute("style");
|
|
assert_false(el.hasAttribute("style"));
|
|
}, "Mutating the style declaration doesn't remove the style attribute");
|
|
</script>
|