Commit fb53f312 authored by Fergal Daly's avatar Fergal Daly Committed by Commit Bot

[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/1369500Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615435}
parent 210930c9
......@@ -11,9 +11,10 @@
</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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment