mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Factor out computing the transform box rect into its own method. Then use it when resolving the transformation matrix, to compute percentage values.
14 lines
220 B
HTML
14 lines
220 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.a {
|
|
border: 20px solid crimson;
|
|
transform: translateY(0px);
|
|
}
|
|
.b {
|
|
border: 20px solid crimson;
|
|
transform: translateY(40px);
|
|
}
|
|
</style>
|
|
<div class="a"></div>
|
|
<div class="b"></div>
|