Skip to content

[css-viewport-1] Move definition of Visual Viewport from CSSOM-View#13912

Open
shubhamg13 wants to merge 2 commits into
w3c:mainfrom
shubhamg13:copy_vv
Open

[css-viewport-1] Move definition of Visual Viewport from CSSOM-View#13912
shubhamg13 wants to merge 2 commits into
w3c:mainfrom
shubhamg13:copy_vv

Conversation

@shubhamg13

@shubhamg13 shubhamg13 commented May 11, 2026

Copy link
Copy Markdown
Contributor

Borrow definition of Visual Viewport from CSSOM-View

Closes: #12832
Closes: #13911

@shubhamg13 shubhamg13 requested review from emilio and xiaochengh May 11, 2026 12:30
@shubhamg13 shubhamg13 changed the title Borrow definition of Visual Viewport from CSSOM-View May 12, 2026
@emilio

emilio commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Can we remove the cssom-view one? No point in having things defined in two places right?

@shubhamg13 shubhamg13 marked this pull request as draft May 12, 2026 05:03
@shubhamg13 shubhamg13 marked this pull request as ready for review May 12, 2026 06:08
@shubhamg13

Copy link
Copy Markdown
Contributor Author

Can we remove the cssom-view one? No point in having things defined in two places right?

Yeah Sure. Moved it to Viewport. Please take a look.

@shubhamg13 shubhamg13 changed the title [css-viewport-1] Borrow definition of Visual Viewport from CSSOM-View May 12, 2026
Signed-off-by: Shubham Gupta <shubham.gupta@chromium.org>
Comment thread css-viewport-1/Overview.bs Outdated
Comment thread cssom-view-1/Overview.bs Outdated
Comment on lines 299 to 362

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example should also be moved, since it's for illustrating different viewports.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure Done.

Comment thread css-viewport-1/Overview.bs Outdated
Comment on lines +133 to +134
The <a>visual viewport</a>'s <a>scrolling area</a> is another <a>viewport</a>,
the <a>layout viewport</a>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads like a redefinition of layout viewport, and should be reworded.

How about turning it into a note:

Suggested change
The <a>visual viewport</a>'s <a>scrolling area</a> is another <a>viewport</a>,
the <a>layout viewport</a>.
Note: The [=visual viewport=]'s [=scrolling area=] is
the [=layout viewport=].

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, Yeah looks legit

Comment thread css-viewport-1/Overview.bs Outdated
<dd>
This is the portion of the layout viewport that is currently visible,
obtained by result of applying scale transform to its layout viewport.
This transform is applied to the <a>canvas</a> of the <a>layout viewport</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use only [=term=] for reference linking? Better make the format more consistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, Done.

@shubhamg13 shubhamg13 force-pushed the copy_vv branch 4 times, most recently from c966776 to 14c5082 Compare June 10, 2026 09:04
@shubhamg13 shubhamg13 requested a review from xiaochengh June 10, 2026 09:05
Signed-off-by: Shubham Gupta <shubham.gupta@chromium.org>

@xiaochengh xiaochengh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @emilio could you take a look again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants