Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-12-22 12:42:38 UTC (rev 271051)
@@ -1,3 +1,22 @@
+2020-12-22 Ziran Sun <[email protected]>
+
+ Add test for logical properties in webkit non-standard '-webkit-writing-mode: horizontal-bt' mode
+ https://bugs.webkit.org/show_bug.cgi?id=220015
+
+ Reviewed by Manuel Rego Casasnovas.
+
+ * web-platform-tests/css/css-logical/logical-box-border-color-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-border-radius-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-border-shorthands-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-border-style-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-border-width-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-inset-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-margin-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-padding-expected.txt:
+ * web-platform-tests/css/css-logical/logical-box-size-expected.txt:
+ * web-platform-tests/css/css-logical/resources/test-shared.js:
+ (CSS.supports):
+
2020-12-17 Manuel Rego Casasnovas <[email protected]>
[selectors] Update WPT test suite
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-color-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-color-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-color-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that border-*-color shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', border-top-color expected "rgb(1, 1, 1)" but got "rgb(0, 0, 0)"
FAIL Test that border-*-color properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-color' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-color expected "rgb(1, 1, 1)" but got "rgb(3, 3, 3)"
FAIL Test that border-*-color properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-color', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-color expected "rgb(1, 1, 1)" but got "rgb(3, 3, 3)"
+PASS Test that logical border-*-color properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-color shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-color properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-color properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical border-*-color properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-color shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-color properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-color properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-radius-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-radius-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-radius-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -40,4 +40,12 @@
PASS Test that border-*-radius shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '.
FAIL Test that border-*-radius properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-start-start-radius' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', border-top-left-radius expected "5px" but got "1px"
FAIL Test that border-*-radius properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-start-start-radius', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', border-top-left-radius expected "5px" but got "1px"
+FAIL Test that logical border-*-radius properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, '-webkit-writing-mode: horizontal-bt; direction: ltr; ', border-start-start-radius expected "1px" but got ""
+PASS Test that border-*-radius shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+FAIL Test that border-*-radius properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '. assert_equals: 'border-start-start-radius' last on single declaration, '-webkit-writing-mode: horizontal-bt; direction: ltr; ', border-end-start-radius expected "1px" but got ""
+FAIL Test that border-*-radius properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '. assert_equals: 'border-start-start-radius', two declarations, '-webkit-writing-mode: horizontal-bt; direction: ltr; ', border-end-start-radius expected "1px" but got ""
+FAIL Test that logical border-*-radius properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, '-webkit-writing-mode: horizontal-bt; direction: rtl; ', border-start-start-radius expected "1px" but got ""
+PASS Test that border-*-radius shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+FAIL Test that border-*-radius properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '. assert_equals: 'border-start-start-radius' last on single declaration, '-webkit-writing-mode: horizontal-bt; direction: rtl; ', border-end-end-radius expected "1px" but got ""
+FAIL Test that border-*-radius properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '. assert_equals: 'border-start-start-radius', two declarations, '-webkit-writing-mode: horizontal-bt; direction: rtl; ', border-end-end-radius expected "1px" but got ""
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-shorthands-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-shorthands-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-shorthands-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that border-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', border-top expected "1px solid rgb(1, 1, 1)" but got "0px none rgb(0, 0, 0)"
FAIL Test that border-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start expected "1px solid rgb(1, 1, 1)" but got "3px dotted rgb(3, 3, 3)"
FAIL Test that border-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start expected "1px solid rgb(1, 1, 1)" but got "3px dotted rgb(3, 3, 3)"
+PASS Test that logical border-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical border-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-style-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-style-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-style-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that border-*-style shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', border-top-style expected "solid" but got "none"
FAIL Test that border-*-style properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-style' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-style expected "solid" but got "dotted"
FAIL Test that border-*-style properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-style', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-style expected "solid" but got "dotted"
+PASS Test that logical border-*-style properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-style shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-style properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-style properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical border-*-style properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-style shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-style properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-style properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-width-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-width-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-border-width-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that border-*-width shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', border-top-width expected "1px" but got "3px"
FAIL Test that border-*-width properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-width' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-width expected "1px" but got "3px"
FAIL Test that border-*-width properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'border-inline-start-width', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', border-block-start-width expected "1px" but got "3px"
+PASS Test that logical border-*-width properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-width shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-width properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that border-*-width properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical border-*-width properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-width shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-width properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that border-*-width properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-inset-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-inset-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-inset-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', top expected "1px" but got "0px"
FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got "3px"
FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got "3px"
+PASS Test that logical inset-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical inset-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-margin-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-margin-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-margin-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that margin-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', margin-top expected "1px" but got "0px"
FAIL Test that margin-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'margin-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', margin-block-start expected "1px" but got "3px"
FAIL Test that margin-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'margin-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', margin-block-start expected "1px" but got "3px"
+PASS Test that logical margin-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that margin-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that margin-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that margin-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical margin-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that margin-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that margin-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that margin-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-padding-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-padding-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-padding-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -43,4 +43,12 @@
FAIL Test that padding-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', padding-top expected "1px" but got "0px"
FAIL Test that padding-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'padding-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', padding-block-start expected "1px" but got "3px"
FAIL Test that padding-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'padding-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', padding-block-start expected "1px" but got "3px"
+PASS Test that logical padding-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that padding-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that padding-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that padding-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical padding-* properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that padding-* shorthands set the computed value of both logical and physical longhands, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that padding-* properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that padding-* properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-size-expected.txt (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-size-expected.txt 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-size-expected.txt 2020-12-22 12:42:38 UTC (rev 271051)
@@ -30,6 +30,12 @@
FAIL Test that logical sizing properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', height expected "1px" but got "2px"
FAIL Test that sizing properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inline-size' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', width expected "1px" but got "3px"
FAIL Test that sizing properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inline-size', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', width expected "1px" but got "3px"
+PASS Test that logical sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
PASS Test that logical max sizing properties are supported.
PASS Test that logical max sizing properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: ltr; '.
PASS Test that max sizing properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '.
@@ -61,6 +67,12 @@
FAIL Test that logical max sizing properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', max-height expected "1px" but got "2px"
FAIL Test that max sizing properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'max-inline-size' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', max-width expected "1px" but got "3px"
FAIL Test that max sizing properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'max-inline-size', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', max-width expected "1px" but got "3px"
+PASS Test that logical max sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that max sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that max sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical max sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that max sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that max sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
PASS Test that logical min sizing properties are supported.
PASS Test that logical min sizing properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: ltr; '.
PASS Test that min sizing properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '.
@@ -92,4 +104,10 @@
FAIL Test that logical min sizing properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', min-height expected "1px" but got "2px"
FAIL Test that min sizing properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'min-inline-size' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', min-width expected "1px" but got "3px"
FAIL Test that min sizing properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'min-inline-size', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', min-width expected "1px" but got "3px"
+PASS Test that logical min sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that min sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that min sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: ltr; '.
+PASS Test that logical min sizing properties share computed values with their physical associates, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that min sizing properties honor order of appearance when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
+PASS Test that min sizing properties honor selector specificty when both logical and physical associates are declared, with '-webkit-writing-mode: horizontal-bt; direction: rtl; '.
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/resources/test-shared.js (271050 => 271051)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/resources/test-shared.js 2020-12-22 12:22:49 UTC (rev 271050)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/resources/test-shared.js 2020-12-22 12:42:38 UTC (rev 271051)
@@ -69,6 +69,27 @@
block: "horizontal", inline: "vertical" },
];
+// Check if logical properties work well in WebKit non-standard
+// '-webkit-writing-mode: horizontal-bt' mode
+if (CSS.supports("-webkit-writing-mode", "horizontal-bt")) {
+ writingModes.push (
+ {
+ styles: [
+ {"-webkit-writing-mode": "horizontal-bt", "direction": "ltr"},
+ ],
+ blockStart: "bottom", blockEnd: "top", inlineStart: "left", inlineEnd: "right",
+ over: "top", under: "bottom", lineLeft: "left", lineRight: "right",
+ block: "vertical", inline: "horizontal" },
+ {
+ styles: [
+ {"-webkit-writing-mode": "horizontal-bt", "direction": "rtl"},
+ ],
+ blockStart: "bottom", blockEnd: "top", inlineStart: "right", inlineEnd: "left",
+ over: "top", under: "bottom", lineLeft: "left", lineRight: "right",
+ block: "vertical", inline: "horizontal" },
+ )
+}
+
export function testCSSValues(testName, style, expectedValues) {
for (const [property, value] of expectedValues) {
assert_equals(style.getPropertyValue(property), value, `${testName}, ${property}`);