mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use black on blue color for default selection color
This commit is contained in:
parent
63a0851b94
commit
2bbf35f2aa
3 changed files with 5 additions and 8 deletions
|
@ -105,10 +105,7 @@ impl<'a> DisplayListBuildState<'a> {
|
|||
const INSERTION_POINT_LOGICAL_WIDTH: Au = Au(1 * AU_PER_PX);
|
||||
|
||||
// Colors for selected text. TODO (#8077): Use the ::selection pseudo-element to set these.
|
||||
const SELECTION_FOREGROUND_COLOR: RGBA = RGBA { red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0 };
|
||||
#[cfg(target_os="linux")]
|
||||
const SELECTION_BACKGROUND_COLOR: RGBA = RGBA { red: 1.0, green: 0.5, blue: 0.0, alpha: 1.0 };
|
||||
#[cfg(not(target_os="linux"))]
|
||||
const SELECTION_FOREGROUND_COLOR: RGBA = RGBA { red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0 };
|
||||
const SELECTION_BACKGROUND_COLOR: RGBA = RGBA { red: 0.69, green: 0.84, blue: 1.0, alpha: 1.0 };
|
||||
|
||||
// TODO(gw): The transforms spec says that perspective length must
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
padding: 0;
|
||||
}
|
||||
::selection {
|
||||
color: white;
|
||||
background: rgba(255, 127, 0, 1.0);
|
||||
color: black;
|
||||
background: rgba(176, 214, 255, 1.0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<style>
|
||||
span {
|
||||
font: 16px sans-serif;
|
||||
color: white;
|
||||
background: rgba(255, 128, 0, 1.0);
|
||||
color: black;
|
||||
background: rgba(176, 214, 255, 1.0);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue