Truly independent web browser
LibWeb: Parse the SVG values of the pointer-events property
Andreas Klingc7e21d1a2bea
diff --git a/Libraries/LibWeb/CSS/Enums.json b/Libraries/LibWeb/CSS/Enums.jsonindex 9deefd1d549..8ee9a1c951f 100644--- a/Libraries/LibWeb/CSS/Enums.json+++ b/Libraries/LibWeb/CSS/Enums.json@@ -889,6 +889,14 @@],"pointer-events": ["auto",+ "bounding-box",+ "visiblepainted",+ "visiblefill",+ "visiblestroke",+ "visible",+ "painted",+ "fill",+ "stroke","all","none"],diff --git a/Libraries/LibWeb/CSS/Keywords.json b/Libraries/LibWeb/CSS/Keywords.jsonindex 42a4e201a64..0d3dc16a5c7 100644--- a/Libraries/LibWeb/CSS/Keywords.json+++ b/Libraries/LibWeb/CSS/Keywords.json@@ -91,6 +91,7 @@"both","both-edges","bottom",+ "bounding-box","break-all","break-spaces","break-word",@@ -534,6 +535,7 @@"page","paged","paint",+ "painted","palettes","pan-down","pan-left",@@ -811,6 +813,9 @@"vertical-text","view-box","visible",+ "visiblefill",+ "visiblepainted",+ "visiblestroke","visitedtext","w","w-resize",diff --git a/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-computed.txtindex 416e26085b1..dc5b69519a4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-computed.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-computed.txt@@ -2,16 +2,15 @@ Harness status: OKFound 11 tests-3 Pass-8 Fail+11 PassPass Property pointer-events value 'auto'-Fail Property pointer-events value 'bounding-box'-Fail Property pointer-events value 'visiblepainted'-Fail Property pointer-events value 'visiblefill'-Fail Property pointer-events value 'visiblestroke'-Fail Property pointer-events value 'visible'-Fail Property pointer-events value 'painted'-Fail Property pointer-events value 'fill'-Fail Property pointer-events value 'stroke'+Pass Property pointer-events value 'bounding-box'+Pass Property pointer-events value 'visiblepainted'+Pass Property pointer-events value 'visiblefill'+Pass Property pointer-events value 'visiblestroke'+Pass Property pointer-events value 'visible'+Pass Property pointer-events value 'painted'+Pass Property pointer-events value 'fill'+Pass Property pointer-events value 'stroke'Pass Property pointer-events value 'all'Pass Property pointer-events value 'none'\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-valid.txtindex aa406dce400..9d4b400d212 100644--- a/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-valid.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/svg/interact/parsing/pointer-events-valid.txt@@ -2,16 +2,15 @@ Harness status: OKFound 11 tests-3 Pass-8 Fail+11 PassPass e.style['pointer-events'] = "auto" should set the property value-Fail e.style['pointer-events'] = "bounding-box" should set the property value-Fail e.style['pointer-events'] = "visiblePainted" should set the property value-Fail e.style['pointer-events'] = "visibleFill" should set the property value-Fail e.style['pointer-events'] = "visibleStroke" should set the property value-Fail e.style['pointer-events'] = "visible" should set the property value-Fail e.style['pointer-events'] = "painted" should set the property value-Fail e.style['pointer-events'] = "fill" should set the property value-Fail e.style['pointer-events'] = "stroke" should set the property value+Pass e.style['pointer-events'] = "bounding-box" should set the property value+Pass e.style['pointer-events'] = "visiblePainted" should set the property value+Pass e.style['pointer-events'] = "visibleFill" should set the property value+Pass e.style['pointer-events'] = "visibleStroke" should set the property value+Pass e.style['pointer-events'] = "visible" should set the property value+Pass e.style['pointer-events'] = "painted" should set the property value+Pass e.style['pointer-events'] = "fill" should set the property value+Pass e.style['pointer-events'] = "stroke" should set the property valuePass e.style['pointer-events'] = "all" should set the property valuePass e.style['pointer-events'] = "none" should set the property value\ No newline at end of file