mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
This patch extends the existing “force element state” UI to support emulating the CSS :target pseudo-class. Screenshot: https://i.imgur.com/oS5dLbi.png Chromium CL: https://chromium-review.googlesource.com/c/chromium/src/+/2575668 DevTools DEPS roll: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2586737 Bug: chromium:1156628 Change-Id: Id03f52b82336a602af91a259cd6bb5f53e877160 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2581544 Commit-Queue: Mathias Bynens <mathias@chromium.org> Reviewed-by: Changhao Han <changhaohan@chromium.org> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
16 lines
391 B
HTML
16 lines
391 B
HTML
<!--
|
|
Copyright 2020 The Chromium Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
found in the LICENSE file.
|
|
-->
|
|
<style>
|
|
#show-on-target {
|
|
display: none;
|
|
}
|
|
#show-on-target:target {
|
|
display: inline;
|
|
}
|
|
</style>
|
|
<span id="show-on-target">Some text here, only shown on :target</span>
|
|
<span>Some text, always shown</span>
|