mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
Base: Add example for calc(<percentage> - <length>)
to calc.html
`calc(<percentage> + -<length>)` did work before, but a direct `calc(<percentage> - <length>)` was broken. Let's have a test for both.
This commit is contained in:
parent
b3a22c97cd
commit
3c9bf1e161
Notes:
sideshowbarker
2024-07-17 09:50:04 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/3c9bf1e161 Pull-request: https://github.com/SerenityOS/serenity/pull/14431 Reviewed-by: https://github.com/AtkinsSJ ✅
|
@ -39,6 +39,11 @@
|
|||
<div class="box" style="width: calc(50% + 60px);"></div>
|
||||
</div>
|
||||
|
||||
<p>calc(50% - 60px)</p>
|
||||
<div class="container">
|
||||
<div class="box" style="width: calc(50% - 60px);"></div>
|
||||
</div>
|
||||
|
||||
<p>calc(50% + -60px)</p>
|
||||
<div class="container">
|
||||
<div class="box" style="width: calc(50% + -60px);"></div>
|
||||
|
|
Loading…
Reference in a new issue