mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Move get_writing_mode outside of mako, and add a pointer to it.
This commit is contained in:
parent
cf45a45e18
commit
5887e1e55c
3 changed files with 72 additions and 56 deletions
|
@ -41,10 +41,13 @@ mod viewport;
|
|||
|
||||
mod writing_modes {
|
||||
use style::logical_geometry::WritingMode;
|
||||
use style::properties::{INITIAL_SERVO_VALUES, get_writing_mode};
|
||||
use style::properties::INITIAL_SERVO_VALUES;
|
||||
|
||||
#[test]
|
||||
fn initial_writing_mode_is_empty() {
|
||||
assert_eq!(get_writing_mode(INITIAL_SERVO_VALUES.get_inheritedbox()), WritingMode::empty())
|
||||
assert_eq!(
|
||||
WritingMode::new(INITIAL_SERVO_VALUES.get_inheritedbox()),
|
||||
WritingMode::empty(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue