commit 1e1c865124b90165c70d00eaf5b6d67116fe4068
parent 98fc5a345a711fa1da70d9eded77d2fc8ba68e84
Author: Sammy Gill <sammy.gill@apple.com>
Date: Fri, 31 Oct 2025 08:55:57 +0000
Bug 1996915 [wpt PR 55720] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=300052, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=300052 (#55720)
--
wpt-commits: 06568793dca1ea45041c7c15b4dd28c17e068619
wpt-pr: 55720
Diffstat:
1 file changed, 82 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/css/css-viewport/zoom/svg-computed-style.html b/testing/web-platform/tests/css/css-viewport/zoom/svg-computed-style.html
@@ -19,6 +19,64 @@
"value": "10px 20px",
"otherValues": ["1px", "1px 2px"]
},
+ "border-width": {
+ "value": "1px",
+ "otherValues": ["5px 10px", "2px 4px 6px 8px"],
+ "requiredProperties": { "border-style": "solid" }
+ },
+ "box-shadow": {
+ "value": "rgb(0, 0, 0) 5px 5px 5px 0px",
+ "otherValues": ["rgb(0, 0, 0) 10px 10px 10px 0px"]
+ },
+ "filter": {
+ "value": "drop-shadow(rgb(0, 0, 0) 5px 5px 5px)",
+ "otherValues": ["drop-shadow(rgb(0, 0, 0) 10px 10px 10px)"]
+ },
+ "height": {
+ "value": "9x",
+ "otherValues": ["18px"]
+ },
+ "inset": {
+ "value": "2px 4px 6px 8px",
+ "otherValues": ["-20px 40px 60px -80px"],
+ "requiredProperties": { "position": "absolute" }
+ },
+ "line-height" : {
+ "value": "7px",
+ "otherValues": ["13px"]
+ },
+ "margin" : {
+ "value": "-10px 20px 30px -40px",
+ "otherValues": ["-20px 40px 60px -80px"]
+ },
+ "max-height" : {
+ "value": "9px",
+ "otherValues": ["18px"]
+ },
+ "max-width" : {
+ "value": "9px",
+ "otherValues": ["18px"]
+ },
+ "min-height" : {
+ "value": "9px",
+ "otherValues": ["18px"]
+ },
+ "min-width" : {
+ "value": "9px",
+ "otherValues": ["18px"]
+ },
+ "padding": {
+ "value": "10px 20px 30px 40px",
+ "otherValues": ["20px 40px 60px 80px"]
+ },
+ "text-decoration-thickness": {
+ "value": "2px",
+ "otherValues": ["4px"]
+ },
+ "text-shadow": {
+ "value": "rgb(0, 0, 0) 5px 5px 0px",
+ "otherValues": ["rgb(0, 0, 0) 10px 10px 0px"]
+ },
"text-underline-offset": {
"value": "2px",
"otherValues": ["4px"]
@@ -26,11 +84,25 @@
"-webkit-text-stroke-width": {
"value": "2px",
"otherValues": ["4px"]
- }
+ },
+ "width": {
+ "value": "9px",
+ "otherValues": ["19px"]
+ },
+
};
- for (const [property, {value, otherValues}] of Object.entries(properties)) {
+ for (const [property, {value, otherValues, requiredProperties}] of Object.entries(properties)) {
+ // setup
+ if (requiredProperties) {
+ for (const [prop, reqValue] of Object.entries(requiredProperties)) {
+ svg.style[prop] = reqValue;
+ target.style[prop] = reqValue;
+ }
+ }
+
svg.style[property] = value;
+
for (const otherValue of otherValues) {
test_computed_value(property, otherValue, otherValue, "no zoom");
}
@@ -42,7 +114,15 @@
test_computed_value(property, otherValue, otherValue, "zoom: 2");
}
test_computed_value(property, "inherit", value, "zoom: 2");
+
+ // cleanup
svg.style.removeProperty(property);
+ if (requiredProperties) {
+ for (const [prop, reqValue] of Object.entries(requiredProperties)) {
+ svg.style.removeProperty(reqValue);
+ target.style.removeProperty(reqValue);
+ }
+ }
}
</script>
</body>