From 61aa60a02309112a832f089ea271c8e3c95cfc51 Mon Sep 17 00:00:00 2001
From: "Javier Contreras Tenorio (from Dev Box)"
Date: Fri, 21 Feb 2025 10:20:38 -0800
Subject: [PATCH] [gap-decorations] Parse `row-rule-style` property
This CL introduces parsing for the `row-rule-style` property which
sets the styles of gap decorations in rows see:
https://drafts.csswg.org/css-gaps-1/#column-row-rule-style
Bug: 357648037
Change-Id: Idcf7575a720812cf5dec7221b09adc82f1ec43f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6283305
Reviewed-by: Sam Davis Omekara
Reviewed-by: Alison Maher
Commit-Queue: Javier Contreras
Reviewed-by: Kevin Babbitt
Cr-Commit-Position: refs/heads/main@{#1423236}
---
.../gap-decorations-style-computed.html | 23 ++++++++++++++++++-
.../gap-decorations-style-invalid.html | 8 ++++++-
.../parsing/gap-decorations-style-valid.html | 17 +++++++++++++-
3 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/css/css-gaps/tentative/parsing/gap-decorations-style-computed.html b/css/css-gaps/tentative/parsing/gap-decorations-style-computed.html
index 3d55aed80ba3d9..4de870c09847f7 100644
--- a/css/css-gaps/tentative/parsing/gap-decorations-style-computed.html
+++ b/css/css-gaps/tentative/parsing/gap-decorations-style-computed.html
@@ -5,7 +5,7 @@
CSS Gap Decoration: column-rule-style getComputedStyle()
-
+
@@ -22,6 +22,15 @@
test_computed_value("column-rule-style", "groove");
test_computed_value("column-rule-style", "ridge");
test_computed_value("column-rule-style", "inset");
+test_computed_value("row-rule-style", "none");
+test_computed_value("row-rule-style", "hidden");
+test_computed_value("row-rule-style", "dotted");
+test_computed_value("row-rule-style", "dashed");
+test_computed_value("row-rule-style", "solid");
+test_computed_value("row-rule-style", "double");
+test_computed_value("row-rule-style", "groove");
+test_computed_value("row-rule-style", "ridge");
+test_computed_value("row-rule-style", "inset");
test_computed_value("column-rule-style", "dotted dashed solid");
test_computed_value("column-rule-style", "repeat(10, double)");
@@ -35,6 +44,18 @@
test_computed_value("column-rule-style", "repeat(4, dotted double dashed) repeat(auto, solid) repeat(4, none groove hidden)");
test_computed_value("column-rule-style", "ridge repeat(auto, solid)");
test_computed_value("column-rule-style", "ridge repeat(auto, solid) ridge");
+test_computed_value("row-rule-style", "dotted dashed solid");
+test_computed_value("row-rule-style", "repeat(10, double)");
+test_computed_value("row-rule-style", "repeat(3, groove) repeat(4, ridge)");
+test_computed_value("row-rule-style", "repeat(auto, solid)");
+test_computed_value("row-rule-style", "repeat(auto, dotted solid inset)");
+test_computed_value("row-rule-style", "repeat(4, none ridge solid) repeat(auto, hidden)");
+test_computed_value("row-rule-style", "inset repeat(auto, solid ridge) repeat(4, none groove hidden)");
+test_computed_value("row-rule-style", "repeat(calc(5 + 3), ridge)", "repeat(8, ridge)");
+test_computed_value("row-rule-style", "repeat(4, dotted double dashed) repeat(auto, solid) ridge");
+test_computed_value("row-rule-style", "repeat(4, dotted double dashed) repeat(auto, solid) repeat(4, none groove hidden)");
+test_computed_value("row-rule-style", "ridge repeat(auto, solid)");
+test_computed_value("row-rule-style", "ridge repeat(auto, solid) ridge");