mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibWeb/SVG: Disallow negative values for SVG radius properties
Some checks are pending
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This commit is contained in:
parent
831ba5d655
commit
0c8a90166f
Notes:
github-actions[bot]
2025-06-27 20:17:52 +00:00
Author: https://github.com/tcl3
Commit: 0c8a90166f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5237
Reviewed-by: https://github.com/gmta ✅
7 changed files with 101 additions and 6 deletions
|
@ -2677,8 +2677,8 @@
|
|||
"inherited": false,
|
||||
"initial": "0",
|
||||
"valid-types": [
|
||||
"length [-∞,∞]",
|
||||
"percentage [-∞,∞]"
|
||||
"length [0,∞]",
|
||||
"percentage [0,∞]"
|
||||
],
|
||||
"percentages-resolve-to": "length",
|
||||
"quirks": [
|
||||
|
@ -2727,8 +2727,8 @@
|
|||
"inherited": false,
|
||||
"initial": "auto",
|
||||
"valid-types": [
|
||||
"length [-∞,∞]",
|
||||
"percentage [-∞,∞]"
|
||||
"length [0,∞]",
|
||||
"percentage [0,∞]"
|
||||
],
|
||||
"valid-identifiers": [
|
||||
"auto"
|
||||
|
@ -2744,8 +2744,8 @@
|
|||
"inherited": false,
|
||||
"initial": "auto",
|
||||
"valid-types": [
|
||||
"length [-∞,∞]",
|
||||
"percentage [-∞,∞]"
|
||||
"length [0,∞]",
|
||||
"percentage [0,∞]"
|
||||
],
|
||||
"valid-identifiers": [
|
||||
"auto"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 5 tests
|
||||
|
||||
5 Pass
|
||||
Pass e.style['r'] = "10" should not set the property value
|
||||
Pass e.style['r'] = "auto" should not set the property value
|
||||
Pass e.style['r'] = "10px 20px" should not set the property value
|
||||
Pass e.style['r'] = "-1px" should not set the property value
|
||||
Pass e.style['r'] = "-10%" should not set the property value
|
|
@ -0,0 +1,9 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Pass e.style['rx'] = "10" should not set the property value
|
||||
Pass e.style['rx'] = "none" should not set the property value
|
||||
Pass e.style['rx'] = "10px 20px" should not set the property value
|
||||
Pass e.style['rx'] = "-1px" should not set the property value
|
|
@ -0,0 +1,9 @@
|
|||
Harness status: OK
|
||||
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Pass e.style['ry'] = "10" should not set the property value
|
||||
Pass e.style['ry'] = "none" should not set the property value
|
||||
Pass e.style['ry'] = "10px 20px" should not set the property value
|
||||
Pass e.style['ry'] = "-1px" should not set the property value
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
width="800px" height="8000px">
|
||||
<title>SVG Geometry Properties: parsing r with invalid values</title>
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/geometry.html#R"/>
|
||||
<h:meta name="assert" content="r supports only the grammar '<length-percentage>'."/>
|
||||
</metadata>
|
||||
<g id="target"></g>
|
||||
<h:script src="../../../resources/testharness.js"/>
|
||||
<h:script src="../../../resources/testharnessreport.js"/>
|
||||
<h:script src="../../../css/support/parsing-testcommon.js"/>
|
||||
<script><![CDATA[
|
||||
|
||||
test_invalid_value("r", "10");
|
||||
test_invalid_value("r", "auto");
|
||||
test_invalid_value("r", "10px 20px");
|
||||
test_invalid_value("r", "-1px");
|
||||
test_invalid_value("r", "-10%");
|
||||
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 841 B |
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
width="800px" height="8000px">
|
||||
<title>SVG Geometry Properties: parsing rx with invalid values</title>
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/geometry.html#RX"/>
|
||||
<h:meta name="assert" content="rx supports only the grammar '<length-percentage> | auto'."/>
|
||||
</metadata>
|
||||
<g id="target"></g>
|
||||
<h:script src="../../../resources/testharness.js"/>
|
||||
<h:script src="../../../resources/testharnessreport.js"/>
|
||||
<h:script src="../../../css/support/parsing-testcommon.js"/>
|
||||
<script><![CDATA[
|
||||
|
||||
test_invalid_value("rx", "10");
|
||||
test_invalid_value("rx", "none");
|
||||
test_invalid_value("rx", "10px 20px");
|
||||
test_invalid_value("rx", "-1px");
|
||||
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 822 B |
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
width="800px" height="8000px">
|
||||
<title>SVG Geometry Properties: parsing ry with invalid values</title>
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/geometry.html#RY"/>
|
||||
<h:meta name="assert" content="ry supports only the grammar '<length-percentage> | auto'."/>
|
||||
</metadata>
|
||||
<g id="target"></g>
|
||||
<h:script src="../../../resources/testharness.js"/>
|
||||
<h:script src="../../../resources/testharnessreport.js"/>
|
||||
<h:script src="../../../css/support/parsing-testcommon.js"/>
|
||||
<script><![CDATA[
|
||||
|
||||
test_invalid_value("ry", "10");
|
||||
test_invalid_value("ry", "none");
|
||||
test_invalid_value("ry", "10px 20px");
|
||||
test_invalid_value("ry", "-1px");
|
||||
|
||||
]]></script>
|
||||
</svg>
|
After Width: | Height: | Size: 822 B |
Loading…
Add table
Add a link
Reference in a new issue