mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Add svg mods and move SVG-related types into them.
This commit is contained in:
parent
4d71eed898
commit
0071c7663f
8 changed files with 154 additions and 125 deletions
16
components/style/values/specified/svg.rs
Normal file
16
components/style/values/specified/svg.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! Specified types for SVG properties.
|
||||
|
||||
use values::generics::svg as generic;
|
||||
use values::specified::color::RGBAColor;
|
||||
|
||||
/// Specified SVG Paint value
|
||||
pub type SVGPaint = generic::SVGPaint<RGBAColor>;
|
||||
|
||||
no_viewport_percentage!(SVGPaint);
|
||||
|
||||
/// Specified SVG Paint Kind value
|
||||
pub type SVGPaintKind = generic::SVGPaintKind<RGBAColor>;
|
Loading…
Add table
Add a link
Reference in a new issue