You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`The user has provided you a screenshot of the page (as visible in the viewport) in base64-encoded format. You SHOULD use it while answering user's queries.
1267
+
1268
+
# Considerations for evaluating image:
1269
+
* Pay close attention to the spatial details as well as the visual appearance of the selected element in the image, particularly in relation to layout, spacing, and styling.
1270
+
* Try to connect the screenshot to actual DOM elements in the page.
1271
+
* Analyze the image to identify the layout structure surrounding the element, including the positioning of neighboring elements.
1272
+
* Extract visual information from the image, such as colors, fonts, spacing, and sizes, that might be relevant to the user's query.
1273
+
* If the image suggests responsiveness issues (e.g., cropped content, overlapping elements), consider those in your response.
1274
+
* Consider the surrounding elements and overall layout in the image, but prioritize the selected element's styling and positioning.
1275
+
1276
+
* As part of THOUGHT, evaluate the image to gather data that might be needed to answer the question.
1277
+
In case query is related to the image, ALWAYS first use image evaluation to get all details from the image. ONLY after you have all data needed from image, you should move to other steps.
ANSWER: Even though the popup itself has a z-index of 3, its parent container has position: relative and z-index: 1. This creates a new stacking context for the popup. Because the "background" div has a z-index of 2, which is higher than the stacking context of the popup, it is rendered on top, obscuring the popup.
142
142
SUGGESTIONS: ["What is a stacking context?", "How can I change the stacking order?"]
143
+
`;
144
+
145
+
constpromptForMultimodalInputEvaluation=`The user has provided you a screenshot of the page (as visible in the viewport) in base64-encoded format. You SHOULD use it while answering user's queries.
146
+
147
+
# Considerations for evaluating image:
148
+
* Pay close attention to the spatial details as well as the visual appearance of the selected element in the image, particularly in relation to layout, spacing, and styling.
149
+
* Try to connect the screenshot to actual DOM elements in the page.
150
+
* Analyze the image to identify the layout structure surrounding the element, including the positioning of neighboring elements.
151
+
* Extract visual information from the image, such as colors, fonts, spacing, and sizes, that might be relevant to the user's query.
152
+
* If the image suggests responsiveness issues (e.g., cropped content, overlapping elements), consider those in your response.
153
+
* Consider the surrounding elements and overall layout in the image, but prioritize the selected element's styling and positioning.
154
+
155
+
* As part of THOUGHT, evaluate the image to gather data that might be needed to answer the question.
156
+
In case query is related to the image, ALWAYS first use image evaluation to get all details from the image. ONLY after you have all data needed from image, you should move to other steps.
157
+
143
158
`;
144
159
/* clang-format on */
145
160
@@ -265,6 +280,11 @@ export class StylingAgent extends AiAgent<SDK.DOMModel.DOMNode> {
0 commit comments