Commit 556b5b3b authored by Christian Biesinger's avatar Christian Biesinger Committed by Commit Bot

[AspectRatio] Fix incorrect test

As per https://github.com/w3c/csswg-drafts/issues/5084, serializing
the specified style for 0/0 should remain 0/0; only computed style
should change.

R=futhark@chromium.org

Bug: 1086606
Change-Id: Iedf56b7dbcb3d0268db8d34d5a554c54a3bdafac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439647
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812646}
parent 443fe06a
...@@ -12,6 +12,6 @@ PASS e.style['aspect-ratio'] = "0 / 9" should set the property value ...@@ -12,6 +12,6 @@ PASS e.style['aspect-ratio'] = "0 / 9" should set the property value
PASS e.style['aspect-ratio'] = "16 / 0" should set the property value PASS e.style['aspect-ratio'] = "16 / 0" should set the property value
PASS e.style['aspect-ratio'] = "auto 16" should set the property value PASS e.style['aspect-ratio'] = "auto 16" should set the property value
PASS e.style['aspect-ratio'] = "16 auto" should set the property value PASS e.style['aspect-ratio'] = "16 auto" should set the property value
FAIL e.style['aspect-ratio'] = "0 / 0" should set the property value assert_equals: serialization should be canonical expected "1 / 0" but got "0 / 0" PASS e.style['aspect-ratio'] = "0 / 0" should set the property value
Harness: the test ran to completion. Harness: the test ran to completion.
...@@ -21,6 +21,5 @@ test_valid_value("aspect-ratio", "0 / 9"); ...@@ -21,6 +21,5 @@ test_valid_value("aspect-ratio", "0 / 9");
test_valid_value("aspect-ratio", "16 / 0"); test_valid_value("aspect-ratio", "16 / 0");
test_valid_value("aspect-ratio", "auto 16"); test_valid_value("aspect-ratio", "auto 16");
test_valid_value("aspect-ratio", "16 auto", "auto 16"); test_valid_value("aspect-ratio", "16 auto", "auto 16");
// https://github.com/w3c/csswg-drafts/issues/5084 test_valid_value("aspect-ratio", "0 / 0");
test_valid_value("aspect-ratio", "0 / 0", "1 / 0");
</script> </script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment