Commit cb41b7fd authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

Indicate default html namespace for all UA rules.

The html.css sheet uses the html namespace as the default namespace, and
various sheets are appended to that sheet before parsing. Indicate that
these sheets also have this default namespace.

Change-Id: I19c8bd74ce6c53615291ae8464576ea59d2d159e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145886Reviewed-by: default avatarRob Buis <rbuis@igalia.com>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758826}
parent c87e9b82
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
/* These styles override other user-agent styles for Chromium on Android. */ /* These styles override other user-agent styles for Chromium on Android. */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
input[type="date" i]:disabled, input[type="date" i]:disabled,
input[type="datetime-local" i]:disabled, input[type="datetime-local" i]:disabled,
input[type="month" i]:disabled, input[type="month" i]:disabled,
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
* using the refreshed controls UI. * using the refreshed controls UI.
*/ */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
select, select,
select:-internal-list-box, select:-internal-list-box,
input, input,
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
* is enabled. * is enabled.
*/ */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
@media forced-colors { @media forced-colors {
body { body {
background-color: Canvas; background-color: Canvas;
...@@ -223,4 +229,4 @@ ...@@ -223,4 +229,4 @@
background-color: Window !important; background-color: Window !important;
} }
} }
\ No newline at end of file
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
* found in the LICENSE file. * found in the LICENSE file.
*/ */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
input[type="date" i], input[type="date" i],
input[type="datetime-local" i], input[type="datetime-local" i],
input[type="month" i], input[type="month" i],
......
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
/* These styles override other user-agent styles for Chromium on Linux. */ /* These styles override other user-agent styles for Chromium on Linux. */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
select:not(:-internal-list-box) { select:not(:-internal-list-box) {
/* Selects with popup menus look like buttons with a drop down triangle on Linux. */ /* Selects with popup menus look like buttons with a drop down triangle on Linux. */
background-color: ButtonFace; background-color: ButtonFace;
......
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
* found in the LICENSE file. * found in the LICENSE file.
*/ */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
select, input[type="color" i][list] { select, input[type="color" i][list] {
/* TODO(tkent): Use ButtonFace and border same as buttons. */ /* TODO(tkent): Use ButtonFace and border same as buttons. */
background-color: #f8f8f8; background-color: #f8f8f8;
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
* *
*/ */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
/* Give floated images margins of 3px */ /* Give floated images margins of 3px */
img[align="left" i] { img[align="left" i] {
margin-right: 3px; margin-right: 3px;
......
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
core/html/resources/tml.css. So far we have used this file exclusively core/html/resources/tml.css. So far we have used this file exclusively
for making our form elements match Firefox's. */ for making our form elements match Firefox's. */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
/* /*
* Update padding for all text-like types including unknown types. * Update padding for all text-like types including unknown types.
* Non-text types have input[type="foo" i] with padding properties in * Non-text types have input[type="foo" i] with padding properties in
......
...@@ -32,6 +32,12 @@ ...@@ -32,6 +32,12 @@
as defined in core/html/resources/quirks.css. So far we have used this as defined in core/html/resources/quirks.css. So far we have used this
file exclusively for making our form elements match Firefox's. */ file exclusively for making our form elements match Firefox's. */
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
textarea { textarea {
/* Matches IE's text offsets in quirksmode (causes text to wrap the same as IE). */ /* Matches IE's text offsets in quirksmode (causes text to wrap the same as IE). */
padding: 2px 0 0 2px; padding: 2px 0 0 2px;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment