mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 13:09:41 +00:00
LibWeb/CSS: Implement CSSNumericValue.to()
Some checks are pending
CI / Linux, x86_64, Sanitizer, 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
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
Some checks are pending
CI / Linux, x86_64, Sanitizer, 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
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
Tries to convert the CSSNumericValue to a CSSUnitValue with the given unit. This gets us the remaining 11 WPT subtests for this method.
This commit is contained in:
parent
80abffd2e8
commit
a139ad1c44
Notes:
github-actions[bot]
2025-09-12 11:46:37 +00:00
Author: https://github.com/AtkinsSJ
Commit: a139ad1c44
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6162
Reviewed-by: https://github.com/gmta ✅
6 changed files with 73 additions and 14 deletions
|
@ -1,4 +1,5 @@
|
|||
#import <CSS/CSSStyleValue.idl>
|
||||
#import <CSS/CSSUnitValue.idl>
|
||||
|
||||
// https://drafts.css-houdini.org/css-typed-om-1/#enumdef-cssnumericbasetype
|
||||
enum CSSNumericBaseType {
|
||||
|
@ -35,7 +36,7 @@ interface CSSNumericValue : CSSStyleValue {
|
|||
|
||||
[ImplementedAs=equals_for_bindings] boolean equals(CSSNumberish... value);
|
||||
|
||||
// FIXME: CSSUnitValue to(USVString unit);
|
||||
CSSUnitValue to(USVString unit);
|
||||
// FIXME: CSSMathSum toSum(USVString... units);
|
||||
[ImplementedAs=type_for_bindings] CSSNumericType type();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue