mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
It was removed from the spec and it's disabled everywhere.
This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed.
This commit is contained in:
parent
7412e28349
commit
349edff768
34 changed files with 35 additions and 1139 deletions
|
@ -72,7 +72,6 @@ impl ParseErrorReporter for TestingErrorReporter {
|
|||
|
||||
#[test]
|
||||
fn test_report_error_stylesheet() {
|
||||
set_pref!(layout.viewport.enabled, true);
|
||||
let css = r"
|
||||
div {
|
||||
background-color: red;
|
||||
|
@ -88,7 +87,6 @@ fn test_report_error_stylesheet() {
|
|||
@media screen { @invalid; }
|
||||
@supports (color: green) and invalid and (margin: 0) {}
|
||||
@keyframes foo { from invalid {} to { margin: 0 invalid 0; } }
|
||||
@viewport { width: 320px invalid auto; }
|
||||
";
|
||||
let url = ServoUrl::parse("about::test").unwrap();
|
||||
let error_reporter = TestingErrorReporter::new();
|
||||
|
@ -135,11 +133,6 @@ fn test_report_error_stylesheet() {
|
|||
52,
|
||||
"Unsupported keyframe property declaration: 'margin: 0 invalid 0;'",
|
||||
),
|
||||
(
|
||||
20,
|
||||
29,
|
||||
"Unsupported @viewport descriptor declaration: 'width: 320px invalid auto;'",
|
||||
),
|
||||
]);
|
||||
|
||||
assert_eq!(error_reporter.errors.borrow()[0].url, url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue