mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests [CSS4Pseudo] Added 2 tests and 1 reference on selection and text-shadow -- wpt-commits: b5b7813e9ce247495b0df30b2f9c8a35de2eacba wpt-pr: 20802
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>CSS Pseudo-Elements Test: partial selection done manually and multiple text-shadow (complex)</title>
|
|
|
|
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
|
<link rel="help" href="https://www.w3.org/TR/css-pseudo-4/#highlight-styling">
|
|
|
|
<meta content="interact" name="flags">
|
|
<meta content="This test checks that text selectedness done manually must affect multiple text shadows." name="assert">
|
|
|
|
<style>
|
|
div
|
|
{
|
|
color: blue;
|
|
font-size: 300%;
|
|
margin-left: 7.16667em;
|
|
margin-top: 1.5em;
|
|
text-shadow: red 0em -1.2em 0em, red -7em 0em 0em, red 7em 0em 0em, red 0em 1.2em 0em;
|
|
}
|
|
|
|
div::selection
|
|
{
|
|
background-color: yellow;
|
|
color: green;
|
|
text-shadow: none;
|
|
}
|
|
</style>
|
|
|
|
<p>Instructions: select a few characters from the blue words "Text sample". Select them with mouse dragging (leftwardedly or rightwardedly) or text-highlighting them with <kbd>Shift</kbd> and keyboard arrows when keyboard navigation (also called caret browsing) is enabled.
|
|
|
|
<p>Test passes if each of the 4 correspondent red glyph counterparts disappear.
|
|
|
|
<div>Text sample</div>
|