2 <script src=
"../../resources/js-test.js"></script>
3 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
6 background-color: #ccc;
18 Tests that a :target pseudo selector is correctly applied, even when history
19 scroll restoration suppresses scrolling to the fragment.
21 <div id=
"console"></div>
22 <a id=
"frag" name=
"frag"></a>
26 if (location
.hash
== "") {
27 runAfterLayoutAndPaint(function() {
28 location
.hash
= 'frag';
32 runAfterLayoutAndPaint(function() {
33 shouldBe(String(document
.querySelector("#frag").clientWidth
), '200');