mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
LibWeb: Set context for parsing against <foo-percentage> syntax
This means that we correctly parse dimension percentage mixes (i.e. `calc(10px + 10%)` is a valid `<length-percentage>`)
This commit is contained in:
Notes:
github-actions[bot]
2026-03-26 01:13:21 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/614a5cf33ef Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8330 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -2,8 +2,8 @@ Harness status: OK
|
||||
|
||||
Found 106 tests
|
||||
|
||||
99 Pass
|
||||
7 Fail
|
||||
100 Pass
|
||||
6 Fail
|
||||
Pass Attribute 'syntax' returns expected value for ["<color>"]
|
||||
Pass Attribute 'syntax' returns expected value for ["<color> | none"]
|
||||
Pass Attribute 'syntax' returns expected value for ["<color># | <image> | none"]
|
||||
@@ -61,7 +61,7 @@ Pass Rule applied [<image>, url("http://a/"), false]
|
||||
Pass Rule applied [<integer>, 5, false]
|
||||
Pass Rule applied [<length-percentage>, 10px, false]
|
||||
Pass Rule applied [<length-percentage>, 10%, false]
|
||||
Fail Rule applied [<length-percentage>, calc(10% + 10px), false]
|
||||
Pass Rule applied [<length-percentage>, calc(10% + 10px), false]
|
||||
Pass Rule applied [<length>, 10px, false]
|
||||
Pass Rule applied [<number>, 2.5, false]
|
||||
Pass Rule applied [<percentage>, 10%, false]
|
||||
|
||||
Reference in New Issue
Block a user