Truly independent web browser
LibWeb: Test rejection of implicit flex calculations
Andreas Kling62fb46d96b57
diff --git a/Tests/LibWeb/Text/expected/css/typed-om-flex-calculations.txt b/Tests/LibWeb/Text/expected/css/typed-om-flex-calculations.txtnew file mode 100644index 00000000000..81c0d902af2--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/typed-om-flex-calculations.txt@@ -0,0 +1,2 @@+grid-auto-rows: TypeError+grid-auto-columns: TypeErrordiff --git a/Tests/LibWeb/Text/input/css/typed-om-flex-calculations.html b/Tests/LibWeb/Text/input/css/typed-om-flex-calculations.htmlnew file mode 100644index 00000000000..3e147b0e8bb--- /dev/null+++ b/Tests/LibWeb/Text/input/css/typed-om-flex-calculations.html@@ -0,0 +1,17 @@+<!doctype html>+<div id="target"></div>+<script src="../include.js"></script>+<script>+ test(() => {+ const map = document.getElementById("target").attributeStyleMap;+ const value = new CSSMathSum(CSS.fr(1), CSS.fr(2));+ for (const property of ["grid-auto-rows", "grid-auto-columns"]) {+ try {+ map.set(property, value);+ println(`${property}: accepted`);+ } catch (error) {+ println(`${property}: ${error.name}`);+ }+ }+ });+</script>