Bug 1512922 [wpt PR 14428] - [CSS] Fix test for css invalidation so that it fails without ::part., a=testonly
authorFergal Daly <fergal@chromium.org>
Thu, 13 Dec 2018 14:01:03 +0000
changeset 507851 a80e38a30bc74bc67bb7f40eca44e9abb4e02f23
parent 507850 1903598dec0711afeeda0c583b856d13a89f0cb3
child 507852 47cffa770ea84bd6f2c277f168e31a4069c09435
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1512922, 14428, 805271, 1369500, 615435
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1512922 [wpt PR 14428] - [CSS] Fix test for css invalidation so that it fails without ::part., a=testonly Automatic update from web-platform-tests [CSS] Fix test for css invalidation so that it fails without ::part. The test was testing that the element ended up green (starting red) however, if the browser has no support at all for ::part then the element actually starts green and stays green. Bug: 805271 Change-Id: Ida40c7963aa3a00c3d197b1309ddaea49e4f3b92 Reviewed-on: https://chromium-review.googlesource.com/c/1369500 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Fergal Daly <fergal@chromium.org> Cr-Commit-Position: refs/heads/master@{#615435} -- wpt-commits: e35021bc491b0ad4aa52df40ac1f7103a82de614 wpt-pr: 14428
testing/web-platform/tests/css/css-shadow-parts/invalidation-change-part-name-idl-setter.html
--- a/testing/web-platform/tests/css/css-shadow-parts/invalidation-change-part-name-idl-setter.html
+++ b/testing/web-platform/tests/css/css-shadow-parts/invalidation-change-part-name-idl-setter.html
@@ -6,19 +6,20 @@
     <link href="http://www.google.com/" rel="author" title="Google">
     <link href="https://drafts.csswg.org/css-shadow-parts/" rel="help">
     <script src="/resources/testharness.js"></script>
     <script src="/resources/testharnessreport.js"></script>
     <script src="support/shadow-helper.js"></script>
   </head>
   <body>
     <style>#c-e::part(partp) { color: red; }</style>
+    <style>#c-e::part(new-partp) { color: green; }</style>
     <script>installCustomElement("custom-element", "custom-element-template");</script>
     <template id="custom-element-template">
-      <style>span { color: green; }</style>
+      <style>span { color: blue; }</style>
       <span id="part" part="partp">This text</span>
     </template>
     The following text should be green:
     <div><custom-element id="c-e"></custom-element></div>
     <script>
       "use strict";
       const colorGreen = "rgb(0, 128, 0)";
       test(function() {