mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +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: 3c9bf1e161
Pull-request: https://github.com/SerenityOS/serenity/pull/14431
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue