mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Switch column-count to use predefined integer type
This commit is contained in:
parent
9233882d49
commit
ab0e5c9d99
5 changed files with 22 additions and 93 deletions
|
@ -557,13 +557,12 @@ mod shorthand_serialization {
|
|||
|
||||
#[test]
|
||||
fn columns_should_serialize_correctly() {
|
||||
use style::properties::longhands::column_count::SpecifiedValue as ColumnCount;
|
||||
use style::values::{Auto, Either};
|
||||
|
||||
let mut properties = Vec::new();
|
||||
|
||||
let width = Either::Second(Auto);
|
||||
let count = ColumnCount::Auto;
|
||||
let count = Either::Second(Auto);
|
||||
|
||||
properties.push(PropertyDeclaration::ColumnWidth(width));
|
||||
properties.push(PropertyDeclaration::ColumnCount(count));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue